pub struct SkipList<'domain, K, V> { /* private fields */ }Implementations§
Source§impl<'domain, K, V> SkipList<'domain, K, V>
impl<'domain, K, V> SkipList<'domain, K, V>
Sourcepub fn insert<'a>(&'a self, key: K, val: V) -> Option<Entry<'a, K, V>>
pub fn insert<'a>(&'a self, key: K, val: V) -> Option<Entry<'a, K, V>>
Inserts a value in the list given a key.
pub fn remove<'a>(&'a self, key: &K) -> Option<Entry<'a, K, V>>
pub fn get<'a>(&'a self, key: &K) -> Option<Entry<'a, K, V>>
pub fn get_first<'a>(&'a self) -> Option<Entry<'a, K, V>>
pub fn get_last<'a>(&'a self) -> Option<Entry<'a, K, V>>
pub fn iter<'a>(&'a self) -> Iter<'a, K, V> ⓘ
Trait Implementations§
Source§impl<'domain, K, V> Drop for SkipList<'domain, K, V>
Manual Drop implementation for all SkipLists
impl<'domain, K, V> Drop for SkipList<'domain, K, V>
Manual Drop implementation for all SkipLists
Source§impl<'a, K, V> FromIterator<(K, V)> for SkipList<'a, K, V>
impl<'a, K, V> FromIterator<(K, V)> for SkipList<'a, K, V>
Source§impl<'a, K, V> IntoIterator for SkipList<'a, K, V>
impl<'a, K, V> IntoIterator for SkipList<'a, K, V>
impl<'domain, K, V> Send for SkipList<'domain, K, V>
impl<'domain, K, V> Sync for SkipList<'domain, K, V>
Auto Trait Implementations§
impl<'domain, K, V> !Freeze for SkipList<'domain, K, V>
impl<'domain, K, V> RefUnwindSafe for SkipList<'domain, K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<'domain, K, V> Unpin for SkipList<'domain, K, V>
impl<'domain, K, V> UnwindSafe for SkipList<'domain, K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
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