pub struct TreeBuilder<N, W> { /* private fields */ }
Expand description

Serializes a tree data structure in a depth first manner.

Implementations

Adds a node to the tree.

Parameters
  • value: Value associated with the node
  • num_children: This node will be the parent node of the last num_children nodes written which do not have a parent yet.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.