pub enum Node<'a> {
General(NodeBase<'a>),
Chosen(Chosen<'a>),
Memory(Memory<'a>),
}Expand description
Device tree node enum supporting specialized node types.
Nodes are automatically classified into General, Chosen, or Memory variants based on their name and properties.
Variants§
General(NodeBase<'a>)
A general-purpose node without special handling
Chosen(Chosen<'a>)
The /chosen node containing boot parameters
Memory(Memory<'a>)
A memory node describing physical memory layout
Methods from Deref<Target = NodeBase<'a>>§
Sourcepub fn properties(&self) -> PropIter<'a> ⓘ
pub fn properties(&self) -> PropIter<'a> ⓘ
Returns an iterator over this node’s properties.
Sourcepub fn find_property(&self, name: &str) -> Option<Property<'a>>
pub fn find_property(&self, name: &str) -> Option<Property<'a>>
Finds a property by name.
Sourcepub fn find_property_str(&self, name: &str) -> Option<&'a str>
pub fn find_property_str(&self, name: &str) -> Option<&'a str>
Finds a string property by name.
Sourcepub fn reg(&self) -> Option<RegIter<'a>>
pub fn reg(&self) -> Option<RegIter<'a>>
Finds and parses the reg property, returning a Reg iterator.
Sourcepub fn reg_array<const N: usize>(&self) -> Vec<RegInfo, N>
pub fn reg_array<const N: usize>(&self) -> Vec<RegInfo, N>
Finds and parses the reg property, returning all RegInfo entries.
Sourcepub fn compatibles(&self) -> impl Iterator<Item = &'a str>
pub fn compatibles(&self) -> impl Iterator<Item = &'a str>
Returns an iterator over compatible strings.
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