Trait fdt::NodeIterator [] [src]

pub trait NodeIterator<'arg, 'buf>: Iterator<Item = Node<'buf>> {
    fn with_name(self, name: &'arg str) -> WithName<'arg, Self>
    where
        Self: Sized
, { ... }
fn compatible_with(
        self,
        compatible: &'arg str
    ) -> CompatibleWith<'arg, Self>
    where
        Self: Sized
, { ... }
fn with_property(self, property: &'arg str) -> WithProperty<'arg, Self>
    where
        Self: Sized
, { ... }
fn with_phandle(self, phandle: u32) -> Option<Node<'buf>>
    where
        Self: Sized
, { ... } }

Provided Methods

Filters on nodes with name [name]

Consumes the iterator and returns a NodeIterator which iterates over nodes with names matching [path]

An address part (@xxx) can optionally be used to identify a unique node.

Examples

todo: get some nodes using their names.

Filters on nodes compatible with [compatible].

Consumes the iterator and returns an Iterator which iterates over nodes with a 'compatible' property containing the [compatible] argument.

Examples

todo: get all nodes compatible with a string.

Filters on nodes based on [property].

Consumes the iterator and returns a NodeIterator which iterates over nodes which contains the property and where that property matches the value of [property].

Examples

todo: get some nodes using properties..

Returns the node with [phandle] if it is iterated by this iterator.

Consumes the iterator and returns the matching node if it is found, returns None otherwise.

Examples

todo: get a node using its phandle.

Implementors