pub struct NodeBase<'a> {
pub address_cells: u8,
pub size_cells: u8,
/* private fields */
}Expand description
Base device tree node structure.
Contains the common data and methods available on all nodes, including name, level, properties, and cell values.
Fields§
§address_cells: u8Current node’s #address-cells (used for child nodes)
size_cells: u8Current node’s #size-cells (used for child nodes)
Implementations§
Source§impl<'a> NodeBase<'a>
impl<'a> 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 NodeBase<'a>
impl<'a> RefUnwindSafe for NodeBase<'a>
impl<'a> Send for NodeBase<'a>
impl<'a> Sync for NodeBase<'a>
impl<'a> Unpin for NodeBase<'a>
impl<'a> UnwindSafe for NodeBase<'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