pub struct PinRef<'a, N>where
N: NetlistBase + ?Sized,{ /* private fields */ }Expand description
A reference to a pin. This is just a wrapper around a netlist and a pin ID.
Implementations§
Source§impl<'a, N> PinRef<'a, N>where
N: NetlistBase,
impl<'a, N> PinRef<'a, N>where
N: NetlistBase,
Sourcepub fn id(&self) -> <N as NetlistBase>::PinId
pub fn id(&self) -> <N as NetlistBase>::PinId
Get the pin ID.
Sourcepub fn terminal_id(&self) -> TerminalId<N>
pub fn terminal_id(&self) -> TerminalId<N>
Get the terminal ID of this pin.
Sourcepub fn name(&self) -> <N as HierarchyBase>::NameType
pub fn name(&self) -> <N as HierarchyBase>::NameType
Get the name of the pin.
Sourcepub fn net(&self) -> Option<NetRef<'a, N>>
pub fn net(&self) -> Option<NetRef<'a, N>>
Get the net which is attached to the pin from inside the cell.
Sourcepub fn instance(
&self,
cell_inst: &<N as HierarchyBase>::CellInstId,
) -> PinInstRef<'a, N>
pub fn instance( &self, cell_inst: &<N as HierarchyBase>::CellInstId, ) -> PinInstRef<'a, N>
Find the instance of this pin in the given cell instance.
Sourcepub fn into_terminal(self) -> TerminalRef<'a, N>
pub fn into_terminal(self) -> TerminalRef<'a, N>
Convert the pin reference into a terminal reference.
Trait Implementations§
Source§impl<'a, N> From<PinRef<'a, N>> for TerminalRef<'a, N>where
N: NetlistBase,
impl<'a, N> From<PinRef<'a, N>> for TerminalRef<'a, N>where
N: NetlistBase,
Source§fn from(p: PinRef<'a, N>) -> TerminalRef<'a, N>
fn from(p: PinRef<'a, N>) -> TerminalRef<'a, N>
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a, N> Freeze for PinRef<'a, N>
impl<'a, N> RefUnwindSafe for PinRef<'a, N>
impl<'a, N> Send for PinRef<'a, N>
impl<'a, N> Sync for PinRef<'a, N>
impl<'a, N> Unpin for PinRef<'a, N>
impl<'a, N> UnwindSafe for PinRef<'a, N>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more