Enum libreda_db::reference_access::TerminalRef
source · pub enum TerminalRef<'a, 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: NetlistBase> TerminalRef<'a, N>
impl<'a, N: NetlistBase> TerminalRef<'a, N>
sourcepub fn id(&self) -> TerminalId<N>
pub fn id(&self) -> TerminalId<N>
Get the ID of the terminal.
Trait Implementations§
source§impl<'a, N: NetlistBase + ?Sized> Clone for TerminalRef<'a, N>
impl<'a, N: NetlistBase + ?Sized> Clone for TerminalRef<'a, N>
source§impl<'a, N: NetlistBase> From<PinInstRef<'a, N>> for TerminalRef<'a, N>
impl<'a, N: NetlistBase> From<PinInstRef<'a, N>> for TerminalRef<'a, N>
source§fn from(p: PinInstRef<'a, N>) -> Self
fn from(p: PinInstRef<'a, N>) -> Self
Converts to this type from the input type.
source§impl<'a, N: NetlistBase> From<PinRef<'a, N>> for TerminalRef<'a, N>
impl<'a, N: NetlistBase> From<PinRef<'a, N>> for TerminalRef<'a, 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<'a, N: NetlistBase> PartialEq for TerminalRef<'a, N>
impl<'a, N: NetlistBase> PartialEq for TerminalRef<'a, N>
Auto Trait Implementations§
impl<'a, N> Freeze for TerminalRef<'a, N>
impl<'a, N> RefUnwindSafe for TerminalRef<'a, N>where
<N as NetlistIds>::PinId: RefUnwindSafe,
<N as NetlistIds>::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 NetlistIds>::PinId: UnwindSafe,
<N as NetlistIds>::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> 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