Enum device_tree_source::parser::ParseResult
[−]
[src]
pub enum ParseResult<'a> { Complete(DTInfo, Vec<Node>), RemainingInput(DTInfo, Vec<Node>, &'a [u8]), }
Returned on a successful completion of parse_dt
.
Variants
Complete(DTInfo, Vec<Node>)
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.
RemainingInput(DTInfo, Vec<Node>, &'a [u8])
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.