Enum libreda_pnr::place::mixed_size_placer::db::TerminalId
source · pub enum TerminalId<N>where
N: NetlistIds + ?Sized,{
PinId(<N as NetlistIds>::PinId),
PinInstId(<N as NetlistIds>::PinInstId),
}Expand description
A terminal is a generalization of pins and pin instances.
Variants§
PinId(<N as NetlistIds>::PinId)
Terminal is a pin.
PinInstId(<N as NetlistIds>::PinInstId)
Terminal is a pin instance.
Implementations§
source§impl<N1> TerminalId<N1>where
N1: NetlistIds,
impl<N1> TerminalId<N1>where N1: NetlistIds,
sourcepub fn cast<N2>(self) -> TerminalId<N2>where
N2: NetlistIds<PinId = <N1 as NetlistIds>::PinId, PinInstId = <N1 as NetlistIds>::PinInstId>,
pub fn cast<N2>(self) -> TerminalId<N2>where N2: NetlistIds<PinId = <N1 as NetlistIds>::PinId, PinInstId = <N1 as NetlistIds>::PinInstId>,
Cast the ID to other netlist types.
Trait Implementations§
source§impl<N> Clone for TerminalId<N>where
N: NetlistIds + ?Sized,
<N as NetlistIds>::PinId: Clone,
<N as NetlistIds>::PinInstId: Clone,
impl<N> Clone for TerminalId<N>where N: NetlistIds + ?Sized, <N as NetlistIds>::PinId: Clone, <N as NetlistIds>::PinInstId: Clone,
source§fn clone(&self) -> TerminalId<N>
fn clone(&self) -> TerminalId<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<N> Debug for TerminalId<N>where
N: NetlistIds + ?Sized,
<N as NetlistIds>::PinId: Debug,
<N as NetlistIds>::PinInstId: Debug,
impl<N> Debug for TerminalId<N>where N: NetlistIds + ?Sized, <N as NetlistIds>::PinId: Debug, <N as NetlistIds>::PinInstId: Debug,
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<N> Hash for TerminalId<N>where
N: NetlistIds + ?Sized,
impl<N> Hash for TerminalId<N>where N: NetlistIds + ?Sized,
source§impl<N> PartialEq<TerminalId<N>> for TerminalId<N>where
N: NetlistIds + ?Sized,
impl<N> PartialEq<TerminalId<N>> for TerminalId<N>where N: NetlistIds + ?Sized,
source§fn eq(&self, other: &TerminalId<N>) -> bool
fn eq(&self, other: &TerminalId<N>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.