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 SplitNode
or SplitNodeDeque
after it has been removed from the arena.
Variants§
Branch
The representation of a
Branch
or BranchDeque
.
Fields
§
children: VecDeque<SplitNodeRepresentation<BranchData, LeafData>>
The branch node’s children.
Leaf
The representation of a
Leaf
or LeafDeque
.
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
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> StructuralPartialEq for SplitNodeRepresentation<BranchData, LeafData>
Auto Trait Implementations§
impl<BranchData, LeafData> Freeze for SplitNodeRepresentation<BranchData, LeafData>
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