pub struct FdtProperty<'fdt> { /* private fields */ }
Expand description
A node property.
The underlying data depends on the property. Various rules can apply to interpret the data correctly, depending on the property’s name or the node containing the property. Some of these rules are described in the Device Tree specification, others depend on the vendor or the underlying platform.
Implementations§
Source§impl<'fdt> FdtProperty<'fdt>
impl<'fdt> FdtProperty<'fdt>
Sourcepub unsafe fn data_as_str(&self) -> &'fdt str
pub unsafe fn data_as_str(&self) -> &'fdt str
§Safety
Cast the property’s data as a string.
Trait Implementations§
Source§impl<'fdt> Clone for FdtProperty<'fdt>
impl<'fdt> Clone for FdtProperty<'fdt>
Source§fn clone(&self) -> FdtProperty<'fdt>
fn clone(&self) -> FdtProperty<'fdt>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'fdt> Debug for FdtProperty<'fdt>
impl<'fdt> Debug for FdtProperty<'fdt>
Source§impl<'fdt> From<&FdtProperty<'fdt>> for PropertyReader<'fdt>
impl<'fdt> From<&FdtProperty<'fdt>> for PropertyReader<'fdt>
Source§fn from(prop: &FdtProperty<'fdt>) -> Self
fn from(prop: &FdtProperty<'fdt>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'fdt> Freeze for FdtProperty<'fdt>
impl<'fdt> RefUnwindSafe for FdtProperty<'fdt>
impl<'fdt> !Send for FdtProperty<'fdt>
impl<'fdt> !Sync for FdtProperty<'fdt>
impl<'fdt> Unpin for FdtProperty<'fdt>
impl<'fdt> UnwindSafe for FdtProperty<'fdt>
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