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
Performs the conversion.
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>
Performs the conversion.
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more