pub struct Fdt<'a> { /* private fields */ }Implementations§
Source§impl<'a> Fdt<'a>
impl<'a> Fdt<'a>
Sourcepub fn from_bytes(data: &'a [u8]) -> Result<Fdt<'a>, FdtError>
pub fn from_bytes(data: &'a [u8]) -> Result<Fdt<'a>, FdtError>
Create a new Fdt from byte slice.
Sourcepub unsafe fn from_ptr(ptr: *mut u8) -> Result<Fdt<'a>, FdtError>
pub unsafe fn from_ptr(ptr: *mut u8) -> Result<Fdt<'a>, FdtError>
Create a new Fdt from a raw pointer and size in bytes.
§Safety
The caller must ensure that the pointer is valid and points to a
memory region of at least size bytes that contains a valid device tree
blob.
pub fn header(&self) -> &Header
pub fn as_slice(&self) -> &'a [u8]
pub fn all_nodes(&self) -> FdtIter<'a>
Sourcepub fn memory_reservations(&self) -> MemoryReservationIter<'a>
pub fn memory_reservations(&self) -> MemoryReservationIter<'a>
Get an iterator over memory reservation entries
pub fn chosen(&self) -> Option<Chosen<'a>>
pub fn memory(&self) -> Option<Memory<'a>>
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§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)