pub struct CellRef<H: HierarchyBase> { /* private fields */ }
Expand description
A reference to a cell. This is just a wrapper around a netlist and a cell ID.
Implementations§
Source§impl<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
.
Source§impl<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§
Source§impl<T: HierarchyBase> Hash for CellRef<T>
impl<T: HierarchyBase> Hash for CellRef<T>
Source§impl<T: HierarchyBase> PartialEq for CellRef<T>
impl<T: HierarchyBase> PartialEq for CellRef<T>
impl<T: HierarchyBase> Eq for CellRef<T>
Auto Trait Implementations§
impl<H> Freeze for CellRef<H>
impl<H> RefUnwindSafe for CellRef<H>
impl<H> Send for CellRef<H>
impl<H> Sync for CellRef<H>
impl<H> Unpin for CellRef<H>
impl<H> UnwindSafe for CellRef<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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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