Struct skipfree::SkipListIterator
source · pub struct SkipListIterator<K, V> { /* 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> SkipListIterator<K, V>
impl<K: Eq + Ord + Default, V: Default> SkipListIterator<K, V>
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§
Auto Trait Implementations§
impl<K, V> RefUnwindSafe for SkipListIterator<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> !Send for SkipListIterator<K, V>
impl<K, V> !Sync for SkipListIterator<K, V>
impl<K, V> Unpin for SkipListIterator<K, V>
impl<K, V> UnwindSafe for SkipListIterator<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