Struct libreda_db::chip::Circuit[][src]

pub struct Circuit<C = Coord, U = ()> where
    C: CoordinateType,
    U: Default
{ /* fields omitted */ }
Expand description

A circuit is defined by an interface (pins) and a content which consists of interconnected circuit instances.

Template parameters:

  • U: User defined data.

Implementations

Get the ID of this circuit.

Get the name of this 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.

Return the number of pins of this circuit.

Get the ID of the pin at position.

Iterate over the IDs of all nets that are defined in this circuit.

Get the shape container of this layer. Returns None if the shapes object does not exist for this layer.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. 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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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.