pub struct SkipListIterator { /* private fields */ }Expand description
| Iteration over the contents of a skip | list | | Intentionally copyable
Implementations§
Source§impl SkipListIterator
impl SkipListIterator
Sourcepub fn new(list: *const SkipList<Box<dyn SliceComparator>>) -> SkipListIterator
pub fn new(list: *const SkipList<Box<dyn SliceComparator>>) -> SkipListIterator
| Initialize an iterator over the specified | list. | | The returned iterator is not valid.
Sourcepub fn key(&self) -> &dyn Key
pub fn key(&self) -> &dyn Key
| Returns the key at the current position. | | REQUIRES: Valid() |
Sourcepub fn seek_to_first(&mut self)
pub fn seek_to_first(&mut self)
| Position at the first entry in list. | | Final state of iterator is Valid() iff list | is not empty.
Sourcepub fn seek_to_last(&mut self)
pub fn seek_to_last(&mut self)
| Position at the last entry in list. | | Final state of iterator is Valid() iff list | is not empty.
Trait Implementations§
Source§impl Clone for SkipListIterator
impl Clone for SkipListIterator
Source§fn clone(&self) -> SkipListIterator
fn clone(&self) -> SkipListIterator
Returns a copy 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 Freeze for SkipListIterator
impl !RefUnwindSafe for SkipListIterator
impl !Send for SkipListIterator
impl !Sync for SkipListIterator
impl Unpin for SkipListIterator
impl !UnwindSafe for SkipListIterator
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