pub struct PinRef<'a, N: NetlistBase + ?Sized> {
pub(super) base: &'a N,
pub(super) id: N::PinId,
}
Expand description
A reference to a pin. This is just a wrapper around a netlist and a pin ID.
Fields
base: &'a N
Reference to the parent data structure.
id: N::PinId
ID of the pin.
Implementations
sourceimpl<'a, L: L2NBase> PinRef<'a, L>
impl<'a, L: L2NBase> PinRef<'a, L>
sourcepub fn each_shape(&self) -> impl Iterator<Item = ShapeRef<'_, L>>
pub fn each_shape(&self) -> impl Iterator<Item = ShapeRef<'_, L>>
Iterate over all shapes attached to this pin.
sourceimpl<'a, N: NetlistBase> PinRef<'a, N>
impl<'a, N: NetlistBase> PinRef<'a, N>
sourcepub fn terminal_id(&self) -> TerminalId<N>
pub fn terminal_id(&self) -> TerminalId<N>
Get the terminal ID of this pin.
sourcepub fn net(&self) -> Option<NetRef<'a, N>>
pub fn net(&self) -> Option<NetRef<'a, N>>
Get the net which is attached to the pin from inside the cell.
sourcepub fn instance(&self, cell_inst: &N::CellInstId) -> PinInstRef<'a, N>
pub fn instance(&self, cell_inst: &N::CellInstId) -> PinInstRef<'a, N>
Find the instance of this pin in the given cell instance.
sourcepub fn into_terminal(self) -> TerminalRef<'a, N>
pub fn into_terminal(self) -> TerminalRef<'a, N>
Convert the pin reference into a terminal reference.
Trait Implementations
sourceimpl<'a, N: NetlistBase + ?Sized> Clone for PinRef<'a, N>
impl<'a, N: NetlistBase + ?Sized> Clone for PinRef<'a, N>
sourceimpl<'a, N: NetlistBase> From<PinRef<'a, N>> for TerminalRef<'a, N>
impl<'a, N: NetlistBase> From<PinRef<'a, N>> for TerminalRef<'a, N>
Auto Trait Implementations
impl<'a, N: ?Sized> RefUnwindSafe for PinRef<'a, N> where
N: RefUnwindSafe,
<N as NetlistBase>::PinId: RefUnwindSafe,
impl<'a, N: ?Sized> Send for PinRef<'a, N> where
N: Sync,
<N as NetlistBase>::PinId: Send,
impl<'a, N: ?Sized> Sync for PinRef<'a, N> where
N: Sync,
<N as NetlistBase>::PinId: Sync,
impl<'a, N: ?Sized> Unpin for PinRef<'a, N> where
<N as NetlistBase>::PinId: Unpin,
impl<'a, N: ?Sized> UnwindSafe for PinRef<'a, N> where
N: RefUnwindSafe,
<N as NetlistBase>::PinId: 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