Enum libreda_pnr::place::mixed_size_placer::db::traits::TerminalRef
source · pub enum TerminalRef<'a, N>where
N: NetlistBase + ?Sized,{
Pin(PinRef<'a, N>),
PinInst(PinInstRef<'a, N>),
}Expand description
Either a pin or a pin instance.
Variants§
Implementations§
source§impl<'a, N> TerminalRef<'a, N>where
N: NetlistBase,
impl<'a, N> TerminalRef<'a, N>where N: NetlistBase,
sourcepub fn id(&self) -> TerminalId<N>
pub fn id(&self) -> TerminalId<N>
Get the ID of the terminal.
sourcepub fn pin_name(&self) -> <N as HierarchyBase>::NameType
pub fn pin_name(&self) -> <N as HierarchyBase>::NameType
Get the name of the pin.
Trait Implementations§
source§impl<'a, N> Clone for TerminalRef<'a, N>where
N: NetlistBase + ?Sized,
impl<'a, N> Clone for TerminalRef<'a, N>where N: NetlistBase + ?Sized,
source§fn clone(&self) -> TerminalRef<'a, N>
fn clone(&self) -> TerminalRef<'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> 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.
source§impl<'a, N> From<TerminalRef<'a, N>> for TerminalId<N>where
N: NetlistBase,
impl<'a, N> From<TerminalRef<'a, N>> for TerminalId<N>where N: NetlistBase,
source§fn from(t: TerminalRef<'a, N>) -> TerminalId<N>
fn from(t: TerminalRef<'a, N>) -> TerminalId<N>
Converts to this type from the input type.
source§impl<'a, N> PartialEq<TerminalRef<'a, N>> for TerminalRef<'a, N>where
N: NetlistBase,
impl<'a, N> PartialEq<TerminalRef<'a, N>> for TerminalRef<'a, N>where N: NetlistBase,
source§fn eq(&self, other: &TerminalRef<'a, N>) -> bool
fn eq(&self, other: &TerminalRef<'a, N>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.