pub struct RBTreeNodeReservation<K, V> { /* private fields */ }
Expand description

A memory reservation for a red-black tree node.

It contains the memory needed to hold a node that can be inserted into a red-black tree. One can be obtained by directly allocating it (RBTree::try_reserve_node) or by “uninitialising” (RBTreeNode::into_reservation) an actual node (usually returned by some operation like removal from a tree).

Implementations

Initialises a node reservation.

It then becomes an RBTreeNode that can be inserted into a tree.

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.
This documentation is an old archive. Please see https://rust.docs.kernel.org instead.