pub struct CellRef<'a, H: HierarchyBase + ?Sized> {
    pub(super) base: &'a H,
    pub(super) id: H::CellId,
}
Expand description

A reference to a cell. This is just a wrapper around a netlist and a cell ID.

Fields

base: &'a H

Reference to the parent data structure.

id: H::CellId

ID of the corresponding cell.

Implementations

Access the base structure.

Get the ID of this cell.

Get the name of the cell.

Iterate over the IDs of all child instances.

Iterate over all child instances.

Find a child instance by its name.

Iterate over the IDs of all instances of this cell.

Iterate over the of all instances of this cell.

Get the total number of usages of this cell.

Iterate over all dependencies of this cell.

Get the total number of direct dependencies of this cell.

Iterate over all cells that directly depend on this cell.

Get the total number of cells which depend on this cell (i.e. use it).

Get the number of cell instances inside the cell.

Iterate over all shapes on a layer.

Iterate over all shapes defined in this cell.

Get the bounding box of the shapes on a specific layer.

Get the bounding box of the shapes on all layers.

Iterate over the IDs of all pins of this cell.

Iterate over all pins of this cell.

Iterate over all input pins of this cell.

Iterate over all output pins of this cell.

Find a pin by it’s name.

Iterate over all nets that live directly in this cell.

Get the number of nets inside this cell.

Find a net by its name.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.