Struct libreda_db::chip::CircuitRef [−][src]
pub struct CircuitRef<'a> { /* fields omitted */ }
Expand description
A ‘fat’ reference to a circuit.
Implementations
pub fn each_instance_ref(
&self
) -> impl Iterator<Item = CircuitInstanceRef<'_>> + ExactSizeIterator
pub fn each_instance_ref(
&self
) -> impl Iterator<Item = CircuitInstanceRef<'_>> + ExactSizeIterator
Iterate over all cell instances in this circuit.
Find a child cell instance by its name.
Returns None
if no such instance exists.
Iterate over the references to all cells that are dependencies of this cell.
pub fn each_dependent_cell_ref(
&self
) -> impl Iterator<Item = CircuitRef<'_>> + ExactSizeIterator
pub fn each_dependent_cell_ref(
&self
) -> impl Iterator<Item = CircuitRef<'_>> + ExactSizeIterator
Iterate over the references to all cells that are dependent on this cell.
Iterate over the IDs of the external circuit pins.
Iterate over each pin of this circuit.
Get a reference to the pin at position
.
Iterate over all nets defined in this circuit.
Methods from Deref<Target = Circuit>
Find a child instance in this circuit by its name.
Iterate over the IDs of the child instances.
Iterate over the IDs of each dependency of this circuit.
A dependency is a circuit that is instantiated in self
.
Iterate over the IDs of cell that depends on this circuit.
Iterate over the IDs of all cells that hold instances of this circuit.
Iterate over the IDs of all instances of this circuit.
Iterate over the IDs of the external circuit pins.
Iterate over the IDs of all nets that are defined in this circuit.
Trait Implementations
All functions of Cell
are made available also for CellRef
by implementation of the Deref
trait.
Auto Trait Implementations
impl<'a> !RefUnwindSafe for CircuitRef<'a>
impl<'a> !Send for CircuitRef<'a>
impl<'a> !Sync for CircuitRef<'a>
impl<'a> Unpin for CircuitRef<'a>
impl<'a> !UnwindSafe for CircuitRef<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more