pub struct SkipListImpl<K: Ord + Debug + Default> { /* private fields */ }Implementations§
Source§impl<K: Ord + Debug + Default> SkipListImpl<K>
impl<K: Ord + Debug + Default> SkipListImpl<K>
pub fn new(arena: Arena) -> SkipListImpl<K>
Sourcepub unsafe fn key_is_after_node(&self, key: &K, node: *const Node<K>) -> bool
pub unsafe fn key_is_after_node(&self, key: &K, node: *const Node<K>) -> bool
§Safety
This function should not be called before data ready.
pub fn find_greater_or_equal( &self, key: &K, prev: &mut Option<&mut Vec<*mut Node<K>>>, ) -> *mut Node<K>
pub fn find_less_than(&self, key: &K) -> NonNull<Node<K>>
pub fn find_last(&self) -> NonNull<Node<K>>
pub fn contains(&self, key: &K) -> bool
pub fn random_height(&mut self) -> usize
pub fn insert(&mut self, key: K)
Trait Implementations§
impl<K: Ord + Debug + Default + Send> Send for SkipListImpl<K>
impl<K: Ord + Debug + Default + Sync> Sync for SkipListImpl<K>
Auto Trait Implementations§
impl<K> !Freeze for SkipListImpl<K>
impl<K> RefUnwindSafe for SkipListImpl<K>where
K: RefUnwindSafe,
impl<K> Unpin for SkipListImpl<K>
impl<K> UnwindSafe for SkipListImpl<K>where
K: 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