Struct libreda_db::reference_access::PinInstRef
source · [−]pub struct PinInstRef<'a, N: NetlistBase + ?Sized> { /* private fields */ }
Expand description
A reference to a pin instance. This is just a wrapper around a netlist and a pin instance ID.
Implementations
sourceimpl<'a, N: NetlistBase> PinInstRef<'a, N>
impl<'a, N: NetlistBase> PinInstRef<'a, N>
sourcepub fn terminal_id(&self) -> TerminalId<N>
pub fn terminal_id(&self) -> TerminalId<N>
Get the terminal ID of this pin instance.
sourcepub fn cell_instance(&self) -> CellInstRef<'a, N>
pub fn cell_instance(&self) -> CellInstRef<'a, N>
Get the parent cell instance.
sourcepub fn into_terminal(self) -> TerminalRef<'a, N>
pub fn into_terminal(self) -> TerminalRef<'a, N>
Convert the pin instance reference into a terminal reference.
Trait Implementations
sourceimpl<'a, N: NetlistBase + ?Sized> Clone for PinInstRef<'a, N>
impl<'a, N: NetlistBase + ?Sized> Clone for PinInstRef<'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.
Auto Trait Implementations
impl<'a, N: ?Sized> RefUnwindSafe for PinInstRef<'a, N> where
N: RefUnwindSafe,
<N as NetlistBase>::PinInstId: RefUnwindSafe,
impl<'a, N: ?Sized> Send for PinInstRef<'a, N> where
N: Sync,
<N as NetlistBase>::PinInstId: Send,
impl<'a, N: ?Sized> Sync for PinInstRef<'a, N> where
N: Sync,
<N as NetlistBase>::PinInstId: Sync,
impl<'a, N: ?Sized> Unpin for PinInstRef<'a, N> where
<N as NetlistBase>::PinInstId: Unpin,
impl<'a, N: ?Sized> UnwindSafe for PinInstRef<'a, N> where
N: RefUnwindSafe,
<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 · sourcepub fn borrow_mut(&mut self) -> &mut T
pub 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.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub 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