pub enum NodeKind<'a> {
Clock(NodeRefClock<'a>),
Pci(NodeRefPci<'a>),
InterruptController(NodeRefInterruptController<'a>),
Memory(NodeRefMemory<'a>),
Generic(NodeRefGen<'a>),
}Expand description
节点类型枚举,用于模式匹配
Variants§
Clock(NodeRefClock<'a>)
Pci(NodeRefPci<'a>)
InterruptController(NodeRefInterruptController<'a>)
Memory(NodeRefMemory<'a>)
Generic(NodeRefGen<'a>)
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for NodeKind<'a>
impl<'a> RefUnwindSafe for NodeKind<'a>
impl<'a> Send for NodeKind<'a>
impl<'a> Sync for NodeKind<'a>
impl<'a> Unpin for NodeKind<'a>
impl<'a> UnwindSafe for NodeKind<'a>
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