pub struct DbIter { /* private fields */ }Expand description
User-facing iterator over a consistent snapshot of the database.
Applies snapshot filtering, tombstone handling, and version merging across the active memtable, any in-progress flush memtable, and all SSTable files.
Obtain via Db::new_iterator. The iterator starts unpositioned;
call seek_to_first, seek_to_last, or seek before reading keys
or values. Supports both forward (next) and backward (prev)
traversal; direction switches are handled transparently.
Implementations§
Source§impl DbIter
impl DbIter
Sourcepub fn seek_to_first(&mut self)
pub fn seek_to_first(&mut self)
Position at the first user-visible entry.
Sourcepub fn seek_to_last(&mut self)
pub fn seek_to_last(&mut self)
Position at the last user-visible entry.
Sourcepub fn seek(&mut self, key: &[u8])
pub fn seek(&mut self, key: &[u8])
Position at the first user-visible entry with key >= target.
Auto Trait Implementations§
impl Freeze for DbIter
impl !RefUnwindSafe for DbIter
impl !Send for DbIter
impl !Sync for DbIter
impl Unpin for DbIter
impl UnsafeUnpin for DbIter
impl !UnwindSafe for DbIter
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