pub struct SetTree<K, V> { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl<K: Ord, V: KeyValue<K> + Clone + Default> SetCollection<K, V> for SetTree<K, V>
impl<K: Ord, V: KeyValue<K> + Clone + Default> SetCollection<K, V> for SetTree<K, V>
fn is_empty(&self) -> bool
fn insert(&mut self, val: V)
fn delete(&mut self, key: &K)
fn delete_by_index(&mut self, index: u32)
fn get_value(&self, key: &K) -> Option<&V>
fn index_after(&self, index: u32) -> u32
fn index_before(&self, index: u32) -> u32
fn value_by_index(&self, index: u32) -> &V
fn value_by_index_mut(&mut self, index: u32) -> &mut V
fn first_index_less(&self, key: &K) -> u32
fn first_index_less_by<F>(&self, f: F) -> u32
fn clear(&mut self)
Auto Trait Implementations§
impl<K, V> Freeze for SetTree<K, V>
impl<K, V> RefUnwindSafe for SetTree<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for SetTree<K, V>
impl<K, V> Sync for SetTree<K, V>
impl<K, V> Unpin for SetTree<K, V>
impl<K, V> UnwindSafe for SetTree<K, V>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