[][src]Struct fdt_rs::iters::DevTreeIter

pub struct DevTreeIter<'a> { /* fields omitted */ }

An iterator over all DevTreeItem objects.

Implementations

impl<'a> DevTreeIter<'a>[src]

pub fn next_node(&mut self) -> Option<DevTreeNode<'a>>[src]

Returns the next DevTreeNode found in the Device Tree

pub fn next_prop(&mut self) -> Option<DevTreeProp<'a>>[src]

Returns the next DevTreeProp found in the Device Tree (regardless if it occurs on a different DevTreeNode

pub fn next_node_prop(&mut self) -> Option<DevTreeProp<'a>>[src]

Returns the next DevTreeProp on the current node within in the Device Tree

pub fn find<F>(&mut self, predicate: F) -> Option<(DevTreeItem<'a>, Self)> where
    F: Fn(&DevTreeItem) -> bool, 
[src]

See the documentation of DevTree::find

Trait Implementations

impl<'a> Clone for DevTreeIter<'a>[src]

impl<'a> From<DevTreeIter<'a>> for DevTreeNodeIter<'a>[src]

impl<'a> From<DevTreeIter<'a>> for DevTreePropIter<'a>[src]

impl<'a> From<DevTreeIter<'a>> for DevTreeNodePropIter<'a>[src]

impl<'a> Iterator for DevTreeIter<'a>[src]

type Item = DevTreeItem<'a>

The type of the elements being iterated over.

Auto Trait Implementations

impl<'a> Send for DevTreeIter<'a>

impl<'a> Sync for DevTreeIter<'a>

impl<'a> Unpin for DevTreeIter<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.