pub enum SplitNodeRepresentation<BranchData: Debug, LeafData: Debug> {
Branch {
children: VecDeque<SplitNodeRepresentation<BranchData, LeafData>>,
data: BranchData,
},
Leaf {
data: LeafData,
},
}
Available on crate feature
split
only.Expand description
The representation of a split node after it has been removed from the arena.
Variants§
Branch
Fields
§
children: VecDeque<SplitNodeRepresentation<BranchData, LeafData>>
The representation of a branch node.
Leaf
The representation of a leaf node.
Trait Implementations§
source§impl<BranchData: Clone + Debug, LeafData: Clone + Debug> Clone for SplitNodeRepresentation<BranchData, LeafData>
impl<BranchData: Clone + Debug, LeafData: Clone + Debug> Clone for SplitNodeRepresentation<BranchData, LeafData>
source§fn clone(&self) -> SplitNodeRepresentation<BranchData, LeafData>
fn clone(&self) -> SplitNodeRepresentation<BranchData, LeafData>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<BranchData: Debug + Debug, LeafData: Debug + Debug> Debug for SplitNodeRepresentation<BranchData, LeafData>
impl<BranchData: Debug + Debug, LeafData: Debug + Debug> Debug for SplitNodeRepresentation<BranchData, LeafData>
source§impl<BranchData: Hash + Debug, LeafData: Hash + Debug> Hash for SplitNodeRepresentation<BranchData, LeafData>
impl<BranchData: Hash + Debug, LeafData: Hash + Debug> Hash for SplitNodeRepresentation<BranchData, LeafData>
source§impl<BranchData: PartialEq + Debug, LeafData: PartialEq + Debug> PartialEq for SplitNodeRepresentation<BranchData, LeafData>
impl<BranchData: PartialEq + Debug, LeafData: PartialEq + Debug> PartialEq for SplitNodeRepresentation<BranchData, LeafData>
source§fn eq(&self, other: &SplitNodeRepresentation<BranchData, LeafData>) -> bool
fn eq(&self, other: &SplitNodeRepresentation<BranchData, LeafData>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<BranchData: Eq + Debug, LeafData: Eq + Debug> Eq for SplitNodeRepresentation<BranchData, LeafData>
impl<BranchData: Debug, LeafData: Debug> StructuralEq for SplitNodeRepresentation<BranchData, LeafData>
impl<BranchData: Debug, LeafData: Debug> StructuralPartialEq for SplitNodeRepresentation<BranchData, LeafData>
Auto Trait Implementations§
impl<BranchData, LeafData> RefUnwindSafe for SplitNodeRepresentation<BranchData, LeafData>where
BranchData: RefUnwindSafe,
LeafData: RefUnwindSafe,
impl<BranchData, LeafData> Send for SplitNodeRepresentation<BranchData, LeafData>
impl<BranchData, LeafData> Sync for SplitNodeRepresentation<BranchData, LeafData>
impl<BranchData, LeafData> Unpin for SplitNodeRepresentation<BranchData, LeafData>
impl<BranchData, LeafData> UnwindSafe for SplitNodeRepresentation<BranchData, LeafData>where
BranchData: UnwindSafe,
LeafData: 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