pub enum WaveletTreeNode<T> {
Internal {
left: Box<WaveletTreeNode<T>>,
right: Box<WaveletTreeNode<T>>,
bit_vec: T,
},
Leaf {
len: usize,
},
}Variants§
Trait Implementations§
Source§impl<T: Clone> Clone for WaveletTreeNode<T>
impl<T: Clone> Clone for WaveletTreeNode<T>
Source§fn clone(&self) -> WaveletTreeNode<T>
fn clone(&self) -> WaveletTreeNode<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for WaveletTreeNode<T>
impl<T: Debug> Debug for WaveletTreeNode<T>
Source§impl<T> HeapSize for WaveletTreeNode<T>where
T: HeapSize,
impl<T> HeapSize for WaveletTreeNode<T>where
T: HeapSize,
Source§fn heap_size_in_bits(&self) -> usize
fn heap_size_in_bits(&self) -> usize
Returns the size of the data structure in bits.
Source§fn heap_size_in_bytes(&self) -> usize
fn heap_size_in_bytes(&self) -> usize
Returns the size of the data structure in bytes.
Source§fn heap_size_in_kib(&self) -> usize
fn heap_size_in_kib(&self) -> usize
Returns the size of the data structure in kibibytes.
Source§fn heap_size_in_mib(&self) -> usize
fn heap_size_in_mib(&self) -> usize
Returns the size of the data structure in mebibytes.
Source§fn heap_size_in_gib(&self) -> usize
fn heap_size_in_gib(&self) -> usize
Returns the size of the data structure in gibibytes.
Source§fn exact_heap_size_in_bytes(&self) -> f64
fn exact_heap_size_in_bytes(&self) -> f64
Returns the exact size of the data structure in bytes as a floating point number.
Source§fn exact_heap_size_in_kib(&self) -> f64
fn exact_heap_size_in_kib(&self) -> f64
Returns the exact size of the data structure in kibibytes as a floating point number.
Source§fn exact_heap_size_in_mib(&self) -> f64
fn exact_heap_size_in_mib(&self) -> f64
Returns the exact size of the data structure in mebibytes as a floating point number.
Source§fn exact_heap_size_in_gib(&self) -> f64
fn exact_heap_size_in_gib(&self) -> f64
Returns the exact size of the data structure in gibibytes as a floating point number.
Source§impl<T: PartialEq> PartialEq for WaveletTreeNode<T>
impl<T: PartialEq> PartialEq for WaveletTreeNode<T>
Source§fn eq(&self, other: &WaveletTreeNode<T>) -> bool
fn eq(&self, other: &WaveletTreeNode<T>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<T: Eq> Eq for WaveletTreeNode<T>
impl<T> StructuralPartialEq for WaveletTreeNode<T>
Auto Trait Implementations§
impl<T> Freeze for WaveletTreeNode<T>where
T: Freeze,
impl<T> RefUnwindSafe for WaveletTreeNode<T>where
T: RefUnwindSafe,
impl<T> Send for WaveletTreeNode<T>where
T: Send,
impl<T> Sync for WaveletTreeNode<T>where
T: Sync,
impl<T> Unpin for WaveletTreeNode<T>where
T: Unpin,
impl<T> UnsafeUnpin for WaveletTreeNode<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for WaveletTreeNode<T>where
T: 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