pub struct CellInstRef<'a, H: HierarchyBase + ?Sized> {
pub(super) base: &'a H,
pub(super) id: H::CellInstId,
}
Expand description
Default implementation for CellInstRef
.
This is just a wrapper around a netlist and a cell ID.
Fields
base: &'a H
Reference to the parent netlist.
id: H::CellInstId
ID of the corresponding cell instance.
Implementations
sourceimpl<'a, H: HierarchyBase> CellInstRef<'a, H>
impl<'a, H: HierarchyBase> CellInstRef<'a, H>
sourcepub fn id(&self) -> H::CellInstId
pub fn id(&self) -> H::CellInstId
Get the ID of this cell instance.
sourcepub fn template_id(&self) -> H::CellId
pub fn template_id(&self) -> H::CellId
Get the ID of the template cell of this instance.
sourceimpl<'a, L: LayoutBase> CellInstRef<'a, L>
impl<'a, L: LayoutBase> CellInstRef<'a, L>
sourcepub fn get_transform(&self) -> SimpleTransform<L::Coord>
pub fn get_transform(&self) -> SimpleTransform<L::Coord>
Get the geometric transform that describes the location of a cell instance relative to its parent.
sourceimpl<'a, N: NetlistBase> CellInstRef<'a, N>
impl<'a, N: NetlistBase> CellInstRef<'a, N>
sourcepub fn each_pin_instance_id(&self) -> impl Iterator<Item = N::PinInstId> + '_
pub fn each_pin_instance_id(&self) -> impl Iterator<Item = N::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.
Auto Trait Implementations
impl<'a, H: ?Sized> RefUnwindSafe for CellInstRef<'a, H> where
H: RefUnwindSafe,
<H as HierarchyBase>::CellInstId: RefUnwindSafe,
impl<'a, H: ?Sized> Send for CellInstRef<'a, H> where
H: Sync,
<H as HierarchyBase>::CellInstId: Send,
impl<'a, H: ?Sized> Sync for CellInstRef<'a, H> where
H: Sync,
<H as HierarchyBase>::CellInstId: Sync,
impl<'a, H: ?Sized> Unpin for CellInstRef<'a, H> where
<H as HierarchyBase>::CellInstId: Unpin,
impl<'a, H: ?Sized> UnwindSafe for CellInstRef<'a, H> where
H: RefUnwindSafe,
<H as HierarchyBase>::CellInstId: 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