PushDeserializedNode

Trait PushDeserializedNode 

Source
pub trait PushDeserializedNode<'dtb> {
    type Node: DeserializeNode<'dtb>;

    // Required method
    fn push_node(
        &mut self,
        node: Self::Node,
        _cx: NodeContext<'_>,
    ) -> Result<()>;
}
Expand description

Types that can collect several devicetree nodes.

Required Associated Types§

Required Methods§

Source

fn push_node(&mut self, node: Self::Node, _cx: NodeContext<'_>) -> Result<()>

Appends a node to the back of the collection.

This function has to be called with the nodes in the same order as they appear in the devicetree, without skipping any qualified ones.

Implementations on Foreign Types§

Source§

impl<'dtb, T: DeserializeNode<'dtb>> PushDeserializedNode<'dtb> for Vec<T>

Source§

type Node = T

Source§

fn push_node(&mut self, node: Self::Node, _cx: NodeContext<'_>) -> Result<()>

Implementors§

Source§

impl<'dtb> PushDeserializedNode<'dtb> for NamedRange<'dtb>

Source§

type Node = Node<'dtb>