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 duplicate 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> Into<TerminalId<N>> for TerminalRef<'a, N>where
N: NetlistBase,
impl<'a, N> Into<TerminalId<N>> for TerminalRef<'a, N>where
N: NetlistBase,
Source§fn into(self) -> TerminalId<N>
fn into(self) -> TerminalId<N>
Converts this type into the (usually inferred) input type.
Source§impl<'a, N> PartialEq for TerminalRef<'a, N>where
N: NetlistBase,
impl<'a, N> PartialEq for TerminalRef<'a, N>where
N: NetlistBase,
Auto Trait Implementations§
impl<'a, N> Freeze for TerminalRef<'a, N>
impl<'a, N> RefUnwindSafe for TerminalRef<'a, N>where
<N as NetlistBase>::PinId: RefUnwindSafe,
<N as NetlistBase>::PinInstId: RefUnwindSafe,
N: RefUnwindSafe + ?Sized,
impl<'a, N> Send for TerminalRef<'a, N>
impl<'a, N> Sync for TerminalRef<'a, N>
impl<'a, N> Unpin for TerminalRef<'a, N>
impl<'a, N> UnwindSafe for TerminalRef<'a, N>where
<N as NetlistBase>::PinId: UnwindSafe,
<N as NetlistBase>::PinInstId: UnwindSafe,
N: RefUnwindSafe + ?Sized,
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