Enum device_tree_source::parser::ParseResult [] [src]

pub enum ParseResult<'a> {
    Complete(DTInfoVec<Node>),
    RemainingInput(DTInfoVec<Node>, &'a [u8]),
}

Returned on a successful completion of parse_dt.

Variants

Indicates that the entirety of the buffer was used while parsing. Holds the boot info that includes the first root node and a Vec of all following nodes.

Indicates that only of the buffer was used while parsing. Holds the device tree info that includes the first root node, a Vec of all following nodes, and a slice containing the remainder of the buffer. Having left over output after parsing is generally not expected and in most cases should be considered an error.

Trait Implementations

impl<'a> Debug for ParseResult<'a>
[src]

Formats the value using the given formatter.