pub struct DevTreeProp<'a, 'dt: 'a> { /* private fields */ }
Expand description
A handle to a DevTreeNode
’s Device Tree Property
Trait Implementations§
Source§impl<'a, 'dt: 'a> Clone for DevTreeProp<'a, 'dt>
impl<'a, 'dt: 'a> Clone for DevTreeProp<'a, 'dt>
Source§fn clone(&self) -> DevTreeProp<'a, 'dt>
fn clone(&self) -> DevTreeProp<'a, 'dt>
Returns a copy 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<'a, 'dt: 'a> PartialEq for DevTreeProp<'a, 'dt>
impl<'a, 'dt: 'a> PartialEq for DevTreeProp<'a, 'dt>
Source§impl<'r, 'dt: 'r> PropReader<'dt> for DevTreeProp<'r, 'dt>
impl<'r, 'dt: 'r> PropReader<'dt> for DevTreeProp<'r, 'dt>
Source§fn node(&self) -> DevTreeNode<'r, 'dt>
fn node(&self) -> DevTreeNode<'r, 'dt>
Returns the node which this property is attached to
type NodeType = DevTreeNode<'r, 'dt>
Source§fn phandle(&self, index: usize) -> Result<Phandle>
fn phandle(&self, index: usize) -> Result<Phandle>
A Phandle is simply defined as a u32 value, as such this method performs the same action as
[
self.u32
]Source§fn str(&self) -> Result<&'dt str>
fn str(&self) -> Result<&'dt str>
Returns the string property as a string if it can be parsed as one. Read more
Source§fn iter_str(&self) -> StringPropIter<'dt>
fn iter_str(&self) -> StringPropIter<'dt>
Returns the property as a string fallible_iterator. Read more
Auto Trait Implementations§
impl<'a, 'dt> Freeze for DevTreeProp<'a, 'dt>
impl<'a, 'dt> RefUnwindSafe for DevTreeProp<'a, 'dt>
impl<'a, 'dt> Send for DevTreeProp<'a, 'dt>
impl<'a, 'dt> Sync for DevTreeProp<'a, 'dt>
impl<'a, 'dt> Unpin for DevTreeProp<'a, 'dt>
impl<'a, 'dt> UnwindSafe for DevTreeProp<'a, 'dt>
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