Struct libreda_pnr::db::traits::layout_ids_portrait::imports::reference_access::PinInstRef
source · pub struct PinInstRef<'a, N>where
N: NetlistBase + ?Sized,{
pub(super) base: &'a N,
pub(super) id: <N as NetlistIds>::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§id: <N as NetlistIds>::PinInstIdImplementations§
source§impl<'a, N> PinInstRef<'a, N>where
N: NetlistBase,
impl<'a, N> PinInstRef<'a, N>where N: NetlistBase,
sourcepub fn id(&self) -> <N as NetlistIds>::PinInstId
pub fn id(&self) -> <N as NetlistIds>::PinInstId
Get the pin instance ID.
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> Clone for PinInstRef<'a, N>where
N: NetlistBase + ?Sized,
impl<'a, N> Clone for PinInstRef<'a, N>where N: NetlistBase + ?Sized,
source§fn clone(&self) -> PinInstRef<'a, N>
fn clone(&self) -> PinInstRef<'a, N>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<'a, N> From<PinInstRef<'a, N>> for TerminalRef<'a, N>where
N: NetlistBase,
impl<'a, N> From<PinInstRef<'a, N>> for TerminalRef<'a, N>where N: NetlistBase,
source§fn from(p: PinInstRef<'a, N>) -> TerminalRef<'a, N>
fn from(p: PinInstRef<'a, N>) -> TerminalRef<'a, N>
Converts to this type from the input type.
source§impl<'a, N> PartialEq<PinInstRef<'a, N>> for PinInstRef<'a, N>where
N: NetlistBase,
impl<'a, N> PartialEq<PinInstRef<'a, N>> for PinInstRef<'a, N>where N: NetlistBase,
source§fn eq(&self, other: &PinInstRef<'a, N>) -> bool
fn eq(&self, other: &PinInstRef<'a, N>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.