pub struct CellRef<H: HierarchyBase> {
pub(super) base: RwRefAccess<H>,
pub(super) id: H::CellId,
}
Expand description
A reference to a cell. This is just a wrapper around a netlist and a cell ID.
Fields
base: RwRefAccess<H>
Reference to the parent data structure.
id: H::CellId
ID of the corresponding cell.
Implementations
sourceimpl<H: HierarchyBase> CellRef<H>
impl<H: HierarchyBase> CellRef<H>
sourcepub fn base(&self) -> &RwRefAccess<H>
pub fn base(&self) -> &RwRefAccess<H>
Access the base structure.
sourcepub fn each_cell_instance_id(&self) -> Vec<H::CellInstId>
pub fn each_cell_instance_id(&self) -> Vec<H::CellInstId>
Get the IDs of all cell instances in this cell.
sourcepub fn each_cell_instance(&self) -> Vec<CellInstRef<H>>
pub fn each_cell_instance(&self) -> Vec<CellInstRef<H>>
Get all cell instances inside this cell.
sourcepub fn cell_instance_by_name(&self, name: &str) -> Option<CellInstRef<H>>
pub fn cell_instance_by_name(&self, name: &str) -> Option<CellInstRef<H>>
Find a child instance by its name.
sourcepub fn each_reference_id(&self) -> Vec<H::CellInstId>
pub fn each_reference_id(&self) -> Vec<H::CellInstId>
Get the IDs of all instances of this cell.
sourcepub fn each_reference(&self) -> Vec<CellInstRef<H>>
pub fn each_reference(&self) -> Vec<CellInstRef<H>>
Get all instances of this cell.
sourcepub fn each_cell_dependency(&self) -> Vec<CellRef<H>>
pub fn each_cell_dependency(&self) -> Vec<CellRef<H>>
Get all dependencies of this cell.
sourcepub fn each_dependent_cell(&self) -> Vec<CellRef<H>>
pub fn each_dependent_cell(&self) -> Vec<CellRef<H>>
Get all cells that directly depend on this cell.
sourcepub fn num_child_instances(&self) -> usize
pub fn num_child_instances(&self) -> usize
Get the number of cell instances inside the cell
.
sourceimpl<H: HierarchyEdit> CellRef<H>
impl<H: HierarchyEdit> CellRef<H>
pub fn create_instance(
&self,
template: &CellRef<H>,
name: Option<H::NameType>
) -> CellInstRef<H>
pub fn remove_instance(&self, inst: CellInstRef<H>)
Trait Implementations
sourceimpl<T: HierarchyBase> Hash for CellRef<T>
impl<T: HierarchyBase> Hash for CellRef<T>
sourceimpl<T: HierarchyBase> PartialEq<CellRef<T>> for CellRef<T>
impl<T: HierarchyBase> PartialEq<CellRef<T>> for CellRef<T>
impl<T: HierarchyBase> Eq for CellRef<T>
Auto Trait Implementations
impl<H> RefUnwindSafe for CellRef<H> where
<H as HierarchyBase>::CellId: RefUnwindSafe,
impl<H> Send for CellRef<H> where
H: Send + Sync,
<H as HierarchyBase>::CellId: Send,
impl<H> Sync for CellRef<H> where
H: Send + Sync,
<H as HierarchyBase>::CellId: Sync,
impl<H> Unpin for CellRef<H> where
<H as HierarchyBase>::CellId: Unpin,
impl<H> UnwindSafe for CellRef<H> where
<H as HierarchyBase>::CellId: 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