pub struct Fdt<'a> { /* private fields */ }Implementations§
source§impl<'a> Fdt<'a>
impl<'a> Fdt<'a>
pub fn from_bytes(data: &'a [u8]) -> FdtResult<'a, Self>
pub fn from_ptr(ptr: NonNull<u8>) -> FdtResult<'a, Self>
pub fn version(&self) -> usize
pub fn reserved_memory_regions(&self) -> impl Iterator<Item = MemoryRegion> + '_
pub fn all_nodes(&'a self) -> impl Iterator<Item = Node<'a>>
pub fn get_node_by_phandle(&'a self, phandle: Phandle) -> Option<Node<'a>>
pub fn get_node_by_name(&'a self, name: &str) -> Option<Node<'a>>
pub fn find_compatible(&'a self, with: &[&str]) -> Option<Node<'a>>
pub fn find_node(&'a self, path: &str) -> Option<Node<'a>>
pub fn find_aliase(&'a self, name: &str) -> Option<&'a str>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Fdt<'a>
impl<'a> RefUnwindSafe for Fdt<'a>
impl<'a> Send for Fdt<'a>
impl<'a> Sync for Fdt<'a>
impl<'a> Unpin for Fdt<'a>
impl<'a> UnwindSafe for Fdt<'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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)