pub enum Node<TLeaf, TNode> {
None,
Leaf(TLeaf),
Node(TNode),
}
Expand description
Enum representing the different type of nodes in a tree
Variants§
None
None is only used as a placeholder when taking mutable ownership of a node during insertion.
Leaf(TLeaf)
A leaf is a node in the tree that does not have any children.
Node(TNode)
A node is parent to at least one other node in a tree.
Trait Implementations§
Auto Trait Implementations§
impl<TLeaf, TNode> Freeze for Node<TLeaf, TNode>
impl<TLeaf, TNode> RefUnwindSafe for Node<TLeaf, TNode>where
TLeaf: RefUnwindSafe,
TNode: RefUnwindSafe,
impl<TLeaf, TNode> Send for Node<TLeaf, TNode>
impl<TLeaf, TNode> Sync for Node<TLeaf, TNode>
impl<TLeaf, TNode> Unpin for Node<TLeaf, TNode>
impl<TLeaf, TNode> UnwindSafe for Node<TLeaf, TNode>where
TLeaf: UnwindSafe,
TNode: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more