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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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