pub enum Node<'a> {
General(NodeBase<'a>),
Chosen(Chosen<'a>),
Memory(Memory<'a>),
InterruptController(InterruptController<'a>),
}
Variants§
General(NodeBase<'a>)
Chosen(Chosen<'a>)
Memory(Memory<'a>)
InterruptController(InterruptController<'a>)
Implementations§
Methods from Deref<Target = NodeBase<'a>>§
pub fn parent_name(&self) -> Option<&'a str>
pub fn parent(&self) -> Option<Node<'a>>
pub fn raw(&self) -> Raw<'a>
Sourcepub fn compatibles(
&self,
) -> Result<impl Iterator<Item = &'a str> + 'a, FdtError>
pub fn compatibles( &self, ) -> Result<impl Iterator<Item = &'a str> + 'a, FdtError>
Get compatible strings for this node (placeholder implementation)
pub fn compatibles_flatten( &self, ) -> Result<impl Iterator<Item = &'a str> + 'a, FdtError>
pub fn reg(&self) -> Result<RegIter<'a>, FdtError>
Sourcepub fn debug_info(&self) -> NodeDebugInfo<'a>
pub fn debug_info(&self) -> NodeDebugInfo<'a>
获取节点的完整路径信息(仅限调试用途)
pub fn properties( &self, ) -> impl Iterator<Item = Result<Property<'a>, FdtError>> + '_
pub fn find_property(&self, name: &str) -> Result<Property<'a>, FdtError>
pub fn phandle(&self) -> Result<Phandle, FdtError>
Sourcepub fn interrupt_parent(&self) -> Result<InterruptController<'a>, FdtError>
pub fn interrupt_parent(&self) -> Result<InterruptController<'a>, FdtError>
Find InterruptController from current node or its parent
Sourcepub fn get_interrupt_parent_phandle(&self) -> Option<Phandle>
pub fn get_interrupt_parent_phandle(&self) -> Option<Phandle>
Get the interrupt parent phandle for this node
pub fn interrupts( &self, ) -> Result<impl Iterator<Item = impl Iterator<Item = u32> + 'a> + 'a, FdtError>
pub fn clock_frequency(&self) -> Result<u32, FdtError>
pub fn children(&self) -> NodeChildIter<'a> ⓘ
pub fn status(&self) -> Result<Status, FdtError>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Node<'a>
impl<'a> RefUnwindSafe for Node<'a>
impl<'a> Send for Node<'a>
impl<'a> Sync for Node<'a>
impl<'a> Unpin for Node<'a>
impl<'a> UnwindSafe for Node<'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