pub struct TreeVec<N> { /* private fields */ }
Expand description

An owned tree, which is stored in contigious memory. Fast traversal and query times.

Implementations

Takes ownership of the bytes, and interprets them as a tree. No checks are performed wether these actually describe a sensible tree. None of Rusts safety guarantees are violated if providing ‘random’ bytes in this constructor. For bugfree code utilizing bytes written with TreeBuilder is recommended, though.

Methods from Deref<Target = TreeSlice<N>>

Deserializes the value of the root node of this silce, and returns an iterator over its children.

Trait Implementations

The resulting type after dereferencing.

Dereferences the value.

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.