pub struct PositionalRadixTree<V, K = PositionalSequenceHash>{ /* private fields */ }Expand description
Positionally sparse radix tree for efficient indexing of PositionalSequenceHashes.
Implementations§
Source§impl<V, K> PositionalRadixTree<V, K>
impl<V, K> PositionalRadixTree<V, K>
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new empty PositionalRadixTree.
Sourcepub fn prefix(&self, key: &K) -> RefMut<'_, u64, DashMap<K, V>>
pub fn prefix(&self, key: &K) -> RefMut<'_, u64, DashMap<K, V>>
Provides the entry for the key at the given position.
Sourcepub fn position(&self, position: u64) -> Option<RefMut<'_, u64, DashMap<K, V>>>
pub fn position(&self, position: u64) -> Option<RefMut<'_, u64, DashMap<K, V>>>
Provides the sub-map for all entries at the given position.
Sourcepub fn len(&self) -> usize
pub fn len(&self) -> usize
Returns the number of entries in the PositionalRadixTree.
Sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Returns true if the PositionalRadixTree is empty.
Trait Implementations§
Source§impl<V: Clone, K> Clone for PositionalRadixTree<V, K>
impl<V: Clone, K> Clone for PositionalRadixTree<V, K>
Source§fn clone(&self) -> PositionalRadixTree<V, K>
fn clone(&self) -> PositionalRadixTree<V, K>
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 moreAuto Trait Implementations§
impl<V, K = PositionalSequenceHash> !RefUnwindSafe for PositionalRadixTree<V, K>
impl<V, K> Freeze for PositionalRadixTree<V, K>
impl<V, K> Send for PositionalRadixTree<V, K>
impl<V, K> Sync for PositionalRadixTree<V, K>
impl<V, K> Unpin for PositionalRadixTree<V, K>
impl<V, K> UnsafeUnpin for PositionalRadixTree<V, K>
impl<V, K> UnwindSafe for PositionalRadixTree<V, K>where
K: UnwindSafe,
V: 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