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,
impl<'a, H> CellInstRef<'a, H>where
H: HierarchyBase,
Sourcepub fn id(&self) -> <H as HierarchyBase>::CellInstId
pub fn id(&self) -> <H as HierarchyBase>::CellInstId
Get the ID of this cell instance.
Sourcepub fn name(&self) -> Option<<H as HierarchyBase>::NameType>
pub fn name(&self) -> Option<<H as HierarchyBase>::NameType>
Get the name of the cell instance.
Sourcepub fn parent_id(&self) -> <H as HierarchyBase>::CellId
pub fn parent_id(&self) -> <H as HierarchyBase>::CellId
Get the ID of the parent cell of this instance.
Sourcepub fn template_id(&self) -> <H as HierarchyBase>::CellId
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,
impl<'a, N> CellInstRef<'a, N>where
N: NetlistBase,
Sourcepub fn each_pin_instance_id(
&self,
) -> impl Iterator<Item = <N as NetlistBase>::PinInstId>
pub fn each_pin_instance_id( &self, ) -> impl Iterator<Item = <N as NetlistBase>::PinInstId>
Iterate over the IDs of all pins of this cell.
Sourcepub fn each_pin_instance(&self) -> impl Iterator<Item = PinInstRef<'a, N>>
pub fn each_pin_instance(&self) -> impl Iterator<Item = PinInstRef<'a, N>>
Iterate over all pins of this cell.
Source§impl<'a, L> CellInstRef<'a, L>where
L: LayoutBase,
impl<'a, L> CellInstRef<'a, L>where
L: LayoutBase,
Sourcepub fn get_transform(&self) -> SimpleTransform<<L as LayoutBase>::Coord>
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>
impl<'a, H> RefUnwindSafe for CellInstRef<'a, H>
impl<'a, H> Send for CellInstRef<'a, H>
impl<'a, H> Sync for CellInstRef<'a, H>
impl<'a, H> Unpin for CellInstRef<'a, H>
impl<'a, H> UnwindSafe for CellInstRef<'a, H>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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