Struct libreda_db::reference_access::NetRef
source · [−]pub struct NetRef<'a, N: NetlistBase + ?Sized> { /* private fields */ }Expand description
A reference to a net. This is just a wrapper around a netlist and a net ID.
Implementations
sourceimpl<'a, N: NetlistBase> NetRef<'a, N>
impl<'a, N: NetlistBase> NetRef<'a, N>
sourcepub fn each_pin(&self) -> impl Iterator<Item = PinRef<'a, N>> + '_
pub fn each_pin(&self) -> impl Iterator<Item = PinRef<'a, N>> + '_
Iterate over each pin attached to this net.
sourcepub fn each_pin_instance(&self) -> impl Iterator<Item = PinInstRef<'a, N>> + '_
pub fn each_pin_instance(&self) -> impl Iterator<Item = PinInstRef<'a, N>> + '_
Iterate over each pin instance attached to this net.
sourcepub fn each_terminal(&self) -> impl Iterator<Item = TerminalRef<'a, N>> + '_
pub fn each_terminal(&self) -> impl Iterator<Item = TerminalRef<'a, N>> + '_
Iterate over terminal attached to this net.
sourcepub fn each_driver(&self) -> impl Iterator<Item = TerminalRef<'a, N>> + '_
pub fn each_driver(&self) -> impl Iterator<Item = TerminalRef<'a, N>> + '_
Iterate over all terminals that drive the net. This should usually be one.
Returns the pins that are marked as inputs and pin instances marked as outputs.
Skips InOut terminals.
sourcepub fn each_sink(&self) -> impl Iterator<Item = TerminalRef<'a, N>> + '_
pub fn each_sink(&self) -> impl Iterator<Item = TerminalRef<'a, N>> + '_
Iterate over all terminals that drive the net. This should usually be one.
Returns the pins that are marked as inputs and pin instances marked as outputs.
Skips InOut terminals.
Auto Trait Implementations
impl<'a, N: ?Sized> RefUnwindSafe for NetRef<'a, N> where
N: RefUnwindSafe,
<N as NetlistBase>::NetId: RefUnwindSafe,
impl<'a, N: ?Sized> Send for NetRef<'a, N> where
N: Sync,
<N as NetlistBase>::NetId: Send,
impl<'a, N: ?Sized> Sync for NetRef<'a, N> where
N: Sync,
<N as NetlistBase>::NetId: Sync,
impl<'a, N: ?Sized> Unpin for NetRef<'a, N> where
<N as NetlistBase>::NetId: Unpin,
impl<'a, N: ?Sized> UnwindSafe for NetRef<'a, N> where
N: RefUnwindSafe,
<N as NetlistBase>::NetId: 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