pub struct DevTreeIndexProp<'a, 'i: 'a, 'dt: 'i> {
pub index: &'a DevTreeIndex<'i, 'dt>,
/* private fields */
}
Expand description
A wrapper around a device tree property within a DevTreeIndex
.
Most desired methods are available through the PropReader
trait.
Fields§
§index: &'a DevTreeIndex<'i, 'dt>
Trait Implementations§
Source§impl<'a, 'i: 'a, 'dt: 'i> Clone for DevTreeIndexProp<'a, 'i, 'dt>
impl<'a, 'i: 'a, 'dt: 'i> Clone for DevTreeIndexProp<'a, 'i, 'dt>
Source§fn clone(&self) -> DevTreeIndexProp<'a, 'i, 'dt>
fn clone(&self) -> DevTreeIndexProp<'a, 'i, 'dt>
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<'a, 'i: 'a, 'dt: 'i> PartialEq for DevTreeIndexProp<'a, 'i, 'dt>
impl<'a, 'i: 'a, 'dt: 'i> PartialEq for DevTreeIndexProp<'a, 'i, 'dt>
Source§impl<'a, 'i: 'a, 'dt: 'i> PropReader<'dt> for DevTreeIndexProp<'a, 'i, 'dt>
impl<'a, 'i: 'a, 'dt: 'i> PropReader<'dt> for DevTreeIndexProp<'a, 'i, 'dt>
type NodeType = DevTreeIndexNode<'a, 'i, 'dt>
Source§fn node(&self) -> DevTreeIndexNode<'a, 'i, 'dt>
fn node(&self) -> DevTreeIndexNode<'a, 'i, 'dt>
Returns the node which this property is contained within.
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, 'i, 'dt> Freeze for DevTreeIndexProp<'a, 'i, 'dt>
impl<'a, 'i, 'dt> RefUnwindSafe for DevTreeIndexProp<'a, 'i, 'dt>
impl<'a, 'i, 'dt> !Send for DevTreeIndexProp<'a, 'i, 'dt>
impl<'a, 'i, 'dt> !Sync for DevTreeIndexProp<'a, 'i, 'dt>
impl<'a, 'i, 'dt> Unpin for DevTreeIndexProp<'a, 'i, 'dt>
impl<'a, 'i, 'dt> UnwindSafe for DevTreeIndexProp<'a, 'i, '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