Struct libreda_pnr::db::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
sourceimpl<'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.
sourceimpl<'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.
sourceimpl<'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: ?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 · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more