Struct libreda_db::chip::CircuitInst
source · pub struct CircuitInst<C = Coord, U = ()>where
C: CoordinateType,{
name: Option<String>,
template_circuit_id: CellId,
parent_circuit_id: CellId,
properties: PropertyStore<String>,
user_data: U,
pins: Vec<PinInstId>,
transform: SimpleTransform<C>,
}Expand description
Instance of a circuit.
Template parameters:
U: User defined data.
Fields§
§name: Option<String>Name of the instance.
template_circuit_id: CellIdThe ID of the template circuit.
parent_circuit_id: CellIdThe ID of the parent circuit where this instance lives in.
properties: PropertyStore<String>Properties related to this instance.
user_data: UUser-defined data.
pins: Vec<PinInstId>List of pins of this instance.
transform: SimpleTransform<C>Transformation to put the cell to the right place an into the right scale/rotation.
Implementations§
source§impl CircuitInst
impl CircuitInst
sourcefn get_transform(&self) -> &SimpleTransform<Coord>
fn get_transform(&self) -> &SimpleTransform<Coord>
Get the transformation that represents the location and orientation of this instance.
sourcefn set_transform(&mut self, tf: SimpleTransform<Coord>)
fn set_transform(&mut self, tf: SimpleTransform<Coord>)
Set the transformation that represents the location and orientation of this instance.
Trait Implementations§
source§impl<C, U: Clone> Clone for CircuitInst<C, U>where
C: CoordinateType + Clone,
impl<C, U: Clone> Clone for CircuitInst<C, U>where C: CoordinateType + Clone,
source§fn clone(&self) -> CircuitInst<C, U>
fn clone(&self) -> CircuitInst<C, U>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<C, U: Debug> Debug for CircuitInst<C, U>where
C: CoordinateType + Debug,
impl<C, U: Debug> Debug for CircuitInst<C, U>where C: CoordinateType + Debug,
source§impl<'de, C, U> Deserialize<'de> for CircuitInst<C, U>where
C: CoordinateType + Deserialize<'de>,
U: Deserialize<'de>,
impl<'de, C, U> Deserialize<'de> for CircuitInst<C, U>where C: CoordinateType + Deserialize<'de>, U: Deserialize<'de>,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more