pub enum Token {
BeginNode,
EndNode,
Prop,
Nop,
End,
Data(u32),
}Expand description
Token type for parsing the FDT structure block.
The device tree structure block is composed of a sequence of 32-bit tokens followed by data. This enum represents the possible token values.
Variants§
BeginNode
Marks the beginning of a node (FDT_BEGIN_NODE, 0x00000001)
EndNode
Marks the end of a node (FDT_END_NODE, 0x00000002)
Prop
Marks a property (FDT_PROP, 0x00000003)
Nop
No-op token, should be ignored (FDT_NOP, 0x00000004)
End
Marks the end of the structure block (FDT_END, 0x00000009)
Data(u32)
Any other 32-bit value (invalid or unknown token)
Trait Implementations§
impl Copy for Token
impl Eq for Token
impl StructuralPartialEq for Token
Auto Trait Implementations§
impl Freeze for Token
impl RefUnwindSafe for Token
impl Send for Token
impl Sync for Token
impl Unpin for Token
impl UnwindSafe for Token
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