pub struct CellInstRef<H: HierarchyBase> {
pub(super) base: RwRefAccess<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: RwRefAccess<H>Reference to the parent netlist.
id: H::CellInstIdID of the corresponding cell instance.
Implementations§
source§impl<H: HierarchyBase> CellInstRef<H>
impl<H: HierarchyBase> CellInstRef<H>
sourcepub fn base(&self) -> &RwRefAccess<H>
pub fn base(&self) -> &RwRefAccess<H>
Access the base structure.
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.
Trait Implementations§
source§impl<H: Clone + HierarchyBase> Clone for CellInstRef<H>where
H::CellInstId: Clone,
impl<H: Clone + HierarchyBase> Clone for CellInstRef<H>where H::CellInstId: Clone,
source§fn clone(&self) -> CellInstRef<H>
fn clone(&self) -> CellInstRef<H>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more