pub struct SkipListIterator<K, V, const MAX_HEIGHT: usize = DEFAULT_MAX_HEIGHT> { /* private fields */ }Expand description
A SkipList iterator. Will outlast the skip list it comes from if so chosen.
Implementations§
Source§impl<K: Eq + Ord + Default, V: Default, const MAX_HEIGHT: usize> SkipListIterator<K, V, MAX_HEIGHT>
impl<K: Eq + Ord + Default, V: Default, const MAX_HEIGHT: usize> SkipListIterator<K, V, MAX_HEIGHT>
Sourcepub fn is_valid(&self) -> bool
pub fn is_valid(&self) -> bool
Returns true if the skip list is positioned at a key-value pair.
Sourcepub fn seek_to_first(&mut self)
pub fn seek_to_first(&mut self)
Seek to the empty start of the skiplist.
After this call the skiplist will not be valid. Call next to get the next node.
Sourcepub fn seek_to_last(&mut self)
pub fn seek_to_last(&mut self)
Seek to the empty end of the skiplist.
After this call the skiplist will not be valid. Call prev to get the prev node.
Trait Implementations§
Source§impl<K: Clone, V: Clone, const MAX_HEIGHT: usize> Clone for SkipListIterator<K, V, MAX_HEIGHT>
impl<K: Clone, V: Clone, const MAX_HEIGHT: usize> Clone for SkipListIterator<K, V, MAX_HEIGHT>
Source§fn clone(&self) -> SkipListIterator<K, V, MAX_HEIGHT>
fn clone(&self) -> SkipListIterator<K, V, MAX_HEIGHT>
Returns a duplicate of the value. Read more
1.0.0 · 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<K, V, const MAX_HEIGHT: usize> Freeze for SkipListIterator<K, V, MAX_HEIGHT>
impl<K, V, const MAX_HEIGHT: usize> RefUnwindSafe for SkipListIterator<K, V, MAX_HEIGHT>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V, const MAX_HEIGHT: usize = DEFAULT_MAX_HEIGHT> !Send for SkipListIterator<K, V, MAX_HEIGHT>
impl<K, V, const MAX_HEIGHT: usize = DEFAULT_MAX_HEIGHT> !Sync for SkipListIterator<K, V, MAX_HEIGHT>
impl<K, V, const MAX_HEIGHT: usize> Unpin for SkipListIterator<K, V, MAX_HEIGHT>
impl<K, V, const MAX_HEIGHT: usize> UnwindSafe for SkipListIterator<K, V, MAX_HEIGHT>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