pub struct PinInstRef<'a, N: NetlistBase + ?Sized> {
pub(super) base: &'a N,
pub(super) id: N::PinInstId,
}
Expand description
A reference to a pin instance. This is just a wrapper around a netlist and a pin instance ID.
Fields
base: &'a N
Reference to the parent data structure.
id: N::PinInstId
ID of the pin instance.
Implementations
sourceimpl<'a, N: NetlistBase> PinInstRef<'a, N>
impl<'a, N: NetlistBase> PinInstRef<'a, N>
sourcepub fn terminal_id(&self) -> TerminalId<N>
pub fn terminal_id(&self) -> TerminalId<N>
Get the terminal ID of this pin instance.
sourcepub fn cell_instance(&self) -> CellInstRef<'a, N>
pub fn cell_instance(&self) -> CellInstRef<'a, N>
Get the parent cell instance.
sourcepub fn into_terminal(self) -> TerminalRef<'a, N>
pub fn into_terminal(self) -> TerminalRef<'a, N>
Convert the pin instance reference into a terminal reference.
Trait Implementations
sourceimpl<'a, N: NetlistBase + ?Sized> Clone for PinInstRef<'a, N>
impl<'a, N: NetlistBase + ?Sized> Clone for PinInstRef<'a, N>
sourceimpl<'a, N: NetlistBase> From<PinInstRef<'a, N>> for TerminalRef<'a, N>
impl<'a, N: NetlistBase> From<PinInstRef<'a, N>> for TerminalRef<'a, N>
sourcefn from(p: PinInstRef<'a, N>) -> Self
fn from(p: PinInstRef<'a, N>) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl<'a, N: ?Sized> RefUnwindSafe for PinInstRef<'a, N> where
N: RefUnwindSafe,
<N as NetlistBase>::PinInstId: RefUnwindSafe,
impl<'a, N: ?Sized> Send for PinInstRef<'a, N> where
N: Sync,
<N as NetlistBase>::PinInstId: Send,
impl<'a, N: ?Sized> Sync for PinInstRef<'a, N> where
N: Sync,
<N as NetlistBase>::PinInstId: Sync,
impl<'a, N: ?Sized> Unpin for PinInstRef<'a, N> where
<N as NetlistBase>::PinInstId: Unpin,
impl<'a, N: ?Sized> UnwindSafe for PinInstRef<'a, N> where
N: RefUnwindSafe,
<N as NetlistBase>::PinInstId: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more