Enum libreda_db::netlist::terminal_id::TerminalId
source · pub enum TerminalId<N: NetlistIds + ?Sized> {
PinId(N::PinId),
PinInstId(N::PinInstId),
}
Expand description
A terminal is a generalization of pins and pin instances.
Variants§
Implementations§
source§impl<N1> TerminalId<N1>where
N1: NetlistIds,
impl<N1> TerminalId<N1>where
N1: NetlistIds,
sourcepub fn cast<N2>(self) -> TerminalId<N2>
pub fn cast<N2>(self) -> TerminalId<N2>
Cast the ID to other netlist types.
Trait Implementations§
source§impl<N: NetlistIds + ?Sized> Clone for TerminalId<N>
impl<N: NetlistIds + ?Sized> Clone for TerminalId<N>
source§impl<N: NetlistIds + ?Sized> Debug for TerminalId<N>
impl<N: NetlistIds + ?Sized> Debug for TerminalId<N>
source§impl<'a, N: NetlistBase> From<TerminalRef<'a, N>> for TerminalId<N>
impl<'a, N: NetlistBase> From<TerminalRef<'a, N>> for TerminalId<N>
source§fn from(t: TerminalRef<'a, N>) -> Self
fn from(t: TerminalRef<'a, N>) -> Self
Converts to this type from the input type.
source§impl<N: NetlistIds + ?Sized> Hash for TerminalId<N>
impl<N: NetlistIds + ?Sized> Hash for TerminalId<N>
source§impl<N: NetlistIds + ?Sized> PartialEq for TerminalId<N>
impl<N: NetlistIds + ?Sized> PartialEq for TerminalId<N>
impl<N: NetlistIds + ?Sized> Eq for TerminalId<N>
Auto Trait Implementations§
impl<N> Freeze for TerminalId<N>
impl<N> RefUnwindSafe for TerminalId<N>where
<N as NetlistIds>::PinId: RefUnwindSafe,
<N as NetlistIds>::PinInstId: RefUnwindSafe,
N: ?Sized,
impl<N> Send for TerminalId<N>
impl<N> Sync for TerminalId<N>
impl<N> Unpin for TerminalId<N>
impl<N> UnwindSafe for TerminalId<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