pub enum MTreeNode {
Internal(InternalNode),
Leaf(LeafNode),
}
Expand description
A node in this tree structure holds entries. Each entry is a tuple consisting of an object and its associated properties. It’s essential to note that the properties vary between a LeafNode and an InternalNode. Both LeafNodes and InternalNodes are implemented as a map. In this map, the key is an object, and the values correspond to its properties. In essence, an entry can be visualized as a tuple of the form (object, properties).
Variants§
Internal(InternalNode)
Leaf(LeafNode)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MTreeNode
impl RefUnwindSafe for MTreeNode
impl Send for MTreeNode
impl Sync for MTreeNode
impl Unpin for MTreeNode
impl UnwindSafe for MTreeNode
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more