Struct device_tree::Node [] [src]

pub struct Node {
    pub name: String,
    pub props: Vec<(String, Vec<u8>)>,
    pub children: Vec<Node>,
}

A single node in the device tree.

Fields

name

The name of the node, as it appears in the node path.

props

A list of node properties, (key, value).

children

Child nodes of this node.

Methods

impl Node

fn find<'a>(&'a self, path: &str) -> Option<&'a Node>

fn has_prop(&self, name: &str) -> bool

fn prop_str<'a>(&'a self, name: &str) -> Result<&'a str, PropError>

fn prop_raw<'a>(&'a self, name: &str) -> Option<&'a Vec<u8>>

fn prop_u64(&self, name: &str) -> Result<u64, PropError>

fn prop_u32(&self, name: &str) -> Result<u32, PropError>

Trait Implementations

Derived Implementations

impl Debug for Node

fn fmt(&self, __arg_0: &mut Formatter) -> Result