pub struct HierarchyHandle { /* private fields */ }Expand description
A module/scope handle. Port of cocotb’s HierarchyObject
(cocotb: handle.py), with Result-returning lookup (mapping row 19).
Implementations§
Source§impl HierarchyHandle
impl HierarchyHandle
Sourcepub fn null_for_test() -> HierarchyHandle
pub fn null_for_test() -> HierarchyHandle
A handle to nothing, for unit tests that need a RustdvCtx but never
touch the DUT. Any VPI call through it goes to rustdv-vpi-stubs,
which panics — so a test that does touch the DUT fails loudly
instead of reading garbage.
Sourcepub fn child(&self, name: &str) -> Result<AnyHandle, HandleError>
pub fn child(&self, name: &str) -> Result<AnyHandle, HandleError>
Dynamic child lookup: dut.child("clk")? (design-doc OQ-6 lean).
Sourcepub fn signal(&self, name: &str) -> Result<LogicHandle, HandleError>
pub fn signal(&self, name: &str) -> Result<LogicHandle, HandleError>
Shorthand: child that must be a signal.
pub fn name(&self) -> String
pub fn full_name(&self) -> String
Trait Implementations§
Source§impl Clone for HierarchyHandle
impl Clone for HierarchyHandle
Source§fn clone(&self) -> HierarchyHandle
fn clone(&self) -> HierarchyHandle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HierarchyHandle
Auto Trait Implementations§
impl !Send for HierarchyHandle
impl !Sync for HierarchyHandle
impl Freeze for HierarchyHandle
impl RefUnwindSafe for HierarchyHandle
impl Unpin for HierarchyHandle
impl UnsafeUnpin for HierarchyHandle
impl UnwindSafe for HierarchyHandle
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