Struct kernel::rbtree::RBTreeNodeReservation
source · [−]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
sourceimpl<K, V> RBTreeNodeReservation<K, V>
impl<K, V> RBTreeNodeReservation<K, V>
sourcepub fn into_node(self, key: K, value: V) -> RBTreeNode<K, V>
pub fn into_node(self, key: K, value: V) -> RBTreeNode<K, V>
Initialises a node reservation.
It then becomes an RBTreeNode
that can be inserted into a tree.
Auto Trait Implementations
impl<K, V> RefUnwindSafe for RBTreeNodeReservation<K, V> where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> !Send for RBTreeNodeReservation<K, V>
impl<K, V> !Sync for RBTreeNodeReservation<K, V>
impl<K, V> Unpin for RBTreeNodeReservation<K, V>
impl<K, V> UnwindSafe for RBTreeNodeReservation<K, V> where
K: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more