pub enum ParseResult<'a> {
Complete(DTInfo, Vec<Node>),
RemainingInput(DTInfo, Vec<Node>, &'a [u8]),
}
Expand description
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.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ParseResult<'a>
impl<'a> RefUnwindSafe for ParseResult<'a>
impl<'a> Send for ParseResult<'a>
impl<'a> Sync for ParseResult<'a>
impl<'a> Unpin for ParseResult<'a>
impl<'a> UnwindSafe for ParseResult<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more