Struct libreda_db::reference_access::PinInstRef
source · 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§
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.