Struct libreda_db::reference_access::PinInstRef
source · pub struct PinInstRef<'a, N: NetlistBase + ?Sized> { /* private fields */ }
Expand description
A reference to a pin instance. This is just a wrapper around a netlist and a pin instance ID.
Implementations§
source§impl<'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§
source§impl<'a, N: NetlistBase + ?Sized> Clone for PinInstRef<'a, N>
impl<'a, N: NetlistBase + ?Sized> Clone for PinInstRef<'a, N>
source§impl<'a, N: NetlistBase> From<PinInstRef<'a, N>> for TerminalRef<'a, N>
impl<'a, N: NetlistBase> From<PinInstRef<'a, N>> for TerminalRef<'a, N>
source§fn from(p: PinInstRef<'a, N>) -> Self
fn from(p: PinInstRef<'a, N>) -> Self
Converts to this type from the input type.
source§impl<'a, N: NetlistBase> PartialEq for PinInstRef<'a, N>
impl<'a, N: NetlistBase> PartialEq for PinInstRef<'a, N>
impl<'a, N: NetlistBase> Eq for PinInstRef<'a, N>
Auto Trait Implementations§
impl<'a, N> Freeze for PinInstRef<'a, N>
impl<'a, N> RefUnwindSafe for PinInstRef<'a, N>
impl<'a, N> Send for PinInstRef<'a, N>
impl<'a, N> Sync for PinInstRef<'a, N>
impl<'a, N> Unpin for PinInstRef<'a, N>
impl<'a, N> UnwindSafe for PinInstRef<'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> 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