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: CellId
The ID of the template circuit.
parent_circuit_id: CellId
The ID of the parent circuit where this instance lives in.
properties: PropertyStore<String>
Properties related to this instance.
user_data: U
User-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
sourceimpl 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
sourceimpl<C: Clone, U: Clone> Clone for CircuitInst<C, U> where
C: CoordinateType,
impl<C: Clone, U: Clone> Clone for CircuitInst<C, U> where
C: CoordinateType,
sourcefn clone(&self) -> CircuitInst<C, U>
fn clone(&self) -> CircuitInst<C, U>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<C: Debug, U: Debug> Debug for CircuitInst<C, U> where
C: CoordinateType,
impl<C: Debug, U: Debug> Debug for CircuitInst<C, U> where
C: CoordinateType,
sourceimpl<'de, C, U> Deserialize<'de> for CircuitInst<C, U> where
C: CoordinateType,
C: Deserialize<'de>,
U: Deserialize<'de>,
impl<'de, C, U> Deserialize<'de> for CircuitInst<C, U> where
C: CoordinateType,
C: Deserialize<'de>,
U: Deserialize<'de>,
sourcefn 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
sourceimpl<C, U> Serialize for CircuitInst<C, U> where
C: CoordinateType,
C: Serialize,
U: Serialize,
impl<C, U> Serialize for CircuitInst<C, U> where
C: CoordinateType,
C: Serialize,
U: Serialize,
Auto Trait Implementations
impl<C, U> RefUnwindSafe for CircuitInst<C, U> where
C: RefUnwindSafe,
U: RefUnwindSafe,
impl<C, U> Send for CircuitInst<C, U> where
C: Send,
U: Send,
impl<C, U> Sync for CircuitInst<C, U> where
C: Sync,
U: Sync,
impl<C, U> Unpin for CircuitInst<C, U> where
C: Unpin,
U: Unpin,
impl<C, U> UnwindSafe for CircuitInst<C, U> where
C: UnwindSafe,
U: 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