pub trait DeserializeNode<'dtb>: Sized {
// Required method
fn deserialize(
blob_node: &Node<'dtb>,
cx: NodeContext<'_>,
) -> Result<(Self, Cursor)>;
}Expand description
Types that can be parsed from a devicetree node.
Required Methods§
Sourcefn deserialize(
blob_node: &Node<'dtb>,
cx: NodeContext<'_>,
) -> Result<(Self, Cursor)>
fn deserialize( blob_node: &Node<'dtb>, cx: NodeContext<'_>, ) -> Result<(Self, Cursor)>
Parses a devicetree node into this type.
The second return value is a cursor pointing to the next token after the node.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.