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::CellInstId
ID of the corresponding cell instance.
Implementations
sourceimpl<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
sourceimpl<H: Clone + HierarchyBase> Clone for CellInstRef<H> where
H::CellInstId: Clone,
impl<H: Clone + HierarchyBase> Clone for CellInstRef<H> where
H::CellInstId: Clone,
sourcefn clone(&self) -> CellInstRef<H>
fn clone(&self) -> CellInstRef<H>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<H: Hash + HierarchyBase> Hash for CellInstRef<H> where
H::CellInstId: Hash,
impl<H: Hash + HierarchyBase> Hash for CellInstRef<H> where
H::CellInstId: Hash,
sourceimpl<T: HierarchyBase> PartialEq<CellInstRef<T>> for CellInstRef<T>
impl<T: HierarchyBase> PartialEq<CellInstRef<T>> for CellInstRef<T>
impl<T: HierarchyBase> Eq for CellInstRef<T>
Auto Trait Implementations
impl<H> RefUnwindSafe for CellInstRef<H> where
<H as HierarchyBase>::CellInstId: RefUnwindSafe,
impl<H> Send for CellInstRef<H> where
H: Send + Sync,
<H as HierarchyBase>::CellInstId: Send,
impl<H> Sync for CellInstRef<H> where
H: Send + Sync,
<H as HierarchyBase>::CellInstId: Sync,
impl<H> Unpin for CellInstRef<H> where
<H as HierarchyBase>::CellInstId: Unpin,
impl<H> UnwindSafe for CellInstRef<H> where
<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