pub struct BitTrie<K: TrieKey, V> { /* private fields */ }Implementations§
Source§impl<K: TrieKey, V> BitTrie<K, V>
impl<K: TrieKey, V> BitTrie<K, V>
pub fn new() -> Self
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn get_index(&self, key: &[u8]) -> Option<usize>
pub fn get(&self, key: &[u8]) -> Option<&V>
pub fn get_mut(&mut self, key: &[u8]) -> Option<&mut V>
pub fn insert(&mut self, key: K, value: V) -> Result<usize, ()>
pub fn iter(&self) -> Cursor<'_, K, V>
pub fn iter_last(&self) -> Cursor<'_, K, V>
Sourcepub fn iter_mut(&mut self) -> CursorMut<'_, K, V>
pub fn iter_mut(&mut self) -> CursorMut<'_, K, V>
Public forward mutable cursor: a lending tree-walk that hands out &mut V
borrows tied to the cursor (see CursorMut). Parked before the first
key — call next()/first() to position.
Sourcepub fn iter_mut_last(&mut self) -> CursorMut<'_, K, V>
pub fn iter_mut_last(&mut self) -> CursorMut<'_, K, V>
Public reverse mutable cursor: a lending tree-walk parked on the last
key (see CursorMut).
pub fn into_keys_values(self) -> (Vec<K>, Vec<V>)
Trait Implementations§
Auto Trait Implementations§
impl<K, V> Freeze for BitTrie<K, V>
impl<K, V> RefUnwindSafe for BitTrie<K, V>
impl<K, V> Send for BitTrie<K, V>
impl<K, V> Sync for BitTrie<K, V>
impl<K, V> Unpin for BitTrie<K, V>
impl<K, V> UnsafeUnpin for BitTrie<K, V>
impl<K, V> UnwindSafe for BitTrie<K, V>
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