CellInstRef

Struct CellInstRef 

Source
pub struct CellInstRef<'a, H>
where H: HierarchyBase + ?Sized,
{ /* private fields */ }
Expand description

Default implementation for CellInstRef. This is just a wrapper around a netlist and a cell ID.

Implementations§

Source§

impl<'a, H> CellInstRef<'a, H>
where H: HierarchyBase,

Source

pub fn base(&self) -> &H

Access the base structure.

Source

pub fn id(&self) -> <H as HierarchyBase>::CellInstId

Get the ID of this cell instance.

Source

pub fn name(&self) -> Option<<H as HierarchyBase>::NameType>

Get the name of the cell instance.

Source

pub fn parent(&self) -> CellRef<'a, H>

Get the parent cell of this instance.

Source

pub fn template(&self) -> CellRef<'a, H>

Get the template cell of this instance.

Source

pub fn parent_id(&self) -> <H as HierarchyBase>::CellId

Get the ID of the parent cell of this instance.

Source

pub fn template_id(&self) -> <H as HierarchyBase>::CellId

Get the ID of the template cell of this instance.

Source§

impl<'a, N> CellInstRef<'a, N>
where N: NetlistBase,

Source

pub fn each_pin_instance_id( &self, ) -> impl Iterator<Item = <N as NetlistBase>::PinInstId>

Iterate over the IDs of all pins of this cell.

Source

pub fn each_pin_instance(&self) -> impl Iterator<Item = PinInstRef<'a, N>>

Iterate over all pins of this cell.

Source

pub fn each_net(&self) -> impl Iterator<Item = NetRef<'a, N>>

Iterate over all nets are connected to this instance. A net might appear more than once.

Source§

impl<'a, L> CellInstRef<'a, L>
where L: LayoutBase,

Source

pub fn get_transform(&self) -> SimpleTransform<<L as LayoutBase>::Coord>

Get the geometric transform that describes the location of a cell instance relative to its parent.

Auto Trait Implementations§

§

impl<'a, H> Freeze for CellInstRef<'a, H>
where <H as HierarchyBase>::CellInstId: Freeze, H: ?Sized,

§

impl<'a, H> RefUnwindSafe for CellInstRef<'a, H>

§

impl<'a, H> Send for CellInstRef<'a, H>
where <H as HierarchyBase>::CellInstId: Send, H: Sync + ?Sized,

§

impl<'a, H> Sync for CellInstRef<'a, H>
where <H as HierarchyBase>::CellInstId: Sync, H: Sync + ?Sized,

§

impl<'a, H> Unpin for CellInstRef<'a, H>
where <H as HierarchyBase>::CellInstId: Unpin, H: ?Sized,

§

impl<'a, H> UnwindSafe for CellInstRef<'a, H>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.