pub enum AnyHandle {
Hierarchy(HierarchyHandle),
Logic(LogicHandle),
Other(ObjHandle),
}Expand description
Any simulator object, classified by type (design-doc §3.3 downcasting).
Variants§
Implementations§
Source§impl AnyHandle
impl AnyHandle
pub fn classify(h: ObjHandle) -> AnyHandle
pub fn as_logic(self) -> Result<LogicHandle, HandleError>
pub fn as_hierarchy(self) -> Result<HierarchyHandle, HandleError>
Trait Implementations§
Auto Trait Implementations§
impl !Send for AnyHandle
impl !Sync for AnyHandle
impl Freeze for AnyHandle
impl RefUnwindSafe for AnyHandle
impl Unpin for AnyHandle
impl UnsafeUnpin for AnyHandle
impl UnwindSafe for AnyHandle
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