pub struct PinRef<'a, 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, L: L2NBase> PinRef<'a, L>
impl<'a, L: L2NBase> PinRef<'a, L>
Sourcepub fn each_shape(&self) -> impl Iterator<Item = ShapeRef<'_, L>>
pub fn each_shape(&self) -> impl Iterator<Item = ShapeRef<'_, L>>
Iterate over all shapes attached to this pin.
Source§impl<'a, N: NetlistBase> PinRef<'a, N>
impl<'a, N: NetlistBase> PinRef<'a, N>
Sourcepub fn terminal_id(&self) -> TerminalId<N>
pub fn terminal_id(&self) -> TerminalId<N>
Get the terminal ID of this 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::CellInstId) -> PinInstRef<'a, N>
pub fn instance(&self, cell_inst: &N::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: NetlistBase> From<PinRef<'a, N>> for TerminalRef<'a, N>
impl<'a, N: NetlistBase> From<PinRef<'a, N>> for TerminalRef<'a, N>
Source§impl<'a, N: NetlistBase> PartialEq for PinRef<'a, N>
impl<'a, N: NetlistBase> PartialEq for PinRef<'a, N>
impl<'a, N: NetlistBase> Eq for PinRef<'a, N>
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