pub struct SstCursor { /* private fields */ }
Expand description
A cursor over an Sst.
Trait Implementations§
source§impl Cursor for SstCursor
impl Cursor for SstCursor
source§fn seek_to_first(&mut self) -> Result<(), Error>
fn seek_to_first(&mut self) -> Result<(), Error>
Seek past the first valid key-value pair to a beginning-of-stream sentinel.
source§fn seek_to_last(&mut self) -> Result<(), Error>
fn seek_to_last(&mut self) -> Result<(), Error>
Seek past the last valid key-value pair to an end-of-stream sentinel.
source§fn seek(&mut self, key: &[u8]) -> Result<(), Error>
fn seek(&mut self, key: &[u8]) -> Result<(), Error>
Seek to this key. After a call to seek, the values of [key] and [value] should return the
sought-to key or the key that’s lexicographically next after key.
source§fn prev(&mut self) -> Result<(), Error>
fn prev(&mut self) -> Result<(), Error>
Advance the cursor forward to the lexicographically-previous key.
source§fn next(&mut self) -> Result<(), Error>
fn next(&mut self) -> Result<(), Error>
Advance the cursor forward to the lexicographically-next key.
source§fn key(&self) -> Option<KeyRef<'_>>
fn key(&self) -> Option<KeyRef<'_>>
The key where this cursor is positioned, or None if the cursor is positioned at the bounds.
source§fn value(&self) -> Option<&[u8]>
fn value(&self) -> Option<&[u8]>
The value where this cursor is positioned, or None if the cursor is positioned at a
tombstone or the limits of the cursor.
source§fn key_value(&self) -> Option<KeyValueRef<'_>>
fn key_value(&self) -> Option<KeyValueRef<'_>>
Return a KeyValueRef corresponding to the current position of the cursor. By default this
will stitch together the values of
key()
and value()
to make a KeyValueRef.Auto Trait Implementations§
impl RefUnwindSafe for SstCursor
impl Send for SstCursor
impl Sync for SstCursor
impl Unpin for SstCursor
impl UnwindSafe for SstCursor
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