pub enum NodeContent<B: DigitBin> {
DigitIndex(Box<[Option<Node<B>>; 10]>),
Bin(B),
}Expand description
The content of a node, which is either more nodes or a leaf with individuals.
Variants§
DigitIndex(Box<[Option<Node<B>>; 10]>)
An internal node that contains children for the next digit (0-9).
Bin(B)
A leaf node that contains a bin of IDs for individuals in this bin.
Trait Implementations§
Source§impl<B: Clone + DigitBin> Clone for NodeContent<B>
impl<B: Clone + DigitBin> Clone for NodeContent<B>
Source§fn clone(&self) -> NodeContent<B>
fn clone(&self) -> NodeContent<B>
Returns a duplicate 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 moreAuto Trait Implementations§
impl<B> Freeze for NodeContent<B>where
B: Freeze,
impl<B> RefUnwindSafe for NodeContent<B>where
B: RefUnwindSafe,
impl<B> Send for NodeContent<B>where
B: Send,
impl<B> Sync for NodeContent<B>where
B: Sync,
impl<B> Unpin for NodeContent<B>where
B: Unpin,
impl<B> UnwindSafe for NodeContent<B>where
B: 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