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
Pin(PinRef<'a, N>)
A template pin.
PinInst(PinInstRef<'a, N>)
An instance of a pin.
Implementations
sourceimpl<'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
sourceimpl<'a, N: NetlistBase + ?Sized> Clone for TerminalRef<'a, N>
impl<'a, N: NetlistBase + ?Sized> Clone for TerminalRef<'a, N>
sourceimpl<'a, N: NetlistBase> From<PinInstRef<'a, N>> for TerminalRef<'a, N>
impl<'a, N: NetlistBase> From<PinInstRef<'a, N>> for TerminalRef<'a, N>
sourcefn from(p: PinInstRef<'a, N>) -> Self
fn from(p: PinInstRef<'a, N>) -> Self
Converts to this type from the input type.
sourceimpl<'a, N: NetlistBase> From<PinRef<'a, N>> for TerminalRef<'a, N>
impl<'a, N: NetlistBase> From<PinRef<'a, N>> for TerminalRef<'a, N>
sourceimpl<'a, N: NetlistBase> Into<TerminalId<N>> for TerminalRef<'a, N>
impl<'a, N: NetlistBase> Into<TerminalId<N>> for TerminalRef<'a, N>
sourcefn into(self) -> TerminalId<N>
fn into(self) -> TerminalId<N>
Converts this type into the (usually inferred) input type.
sourceimpl<'a, N: NetlistBase> PartialEq<TerminalRef<'a, N>> for TerminalRef<'a, N>
impl<'a, N: NetlistBase> PartialEq<TerminalRef<'a, N>> for TerminalRef<'a, N>
Auto Trait Implementations
impl<'a, N: ?Sized> RefUnwindSafe for TerminalRef<'a, N> where
N: RefUnwindSafe,
<N as NetlistBase>::PinId: RefUnwindSafe,
<N as NetlistBase>::PinInstId: RefUnwindSafe,
impl<'a, N: ?Sized> Send for TerminalRef<'a, N> where
N: Sync,
<N as NetlistBase>::PinId: Send,
<N as NetlistBase>::PinInstId: Send,
impl<'a, N: ?Sized> Sync for TerminalRef<'a, N> where
N: Sync,
<N as NetlistBase>::PinId: Sync,
<N as NetlistBase>::PinInstId: Sync,
impl<'a, N: ?Sized> Unpin for TerminalRef<'a, N> where
<N as NetlistBase>::PinId: Unpin,
<N as NetlistBase>::PinInstId: Unpin,
impl<'a, N: ?Sized> UnwindSafe for TerminalRef<'a, N> where
N: RefUnwindSafe,
<N as NetlistBase>::PinId: UnwindSafe,
<N as NetlistBase>::PinInstId: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more