pub struct CursorWindow {
pub position_key: Option<Vec<u8>>,
pub position_value: Option<Vec<u8>>,
pub found: bool,
pub entries: Vec<(Vec<u8>, Vec<u8>)>,
pub next_cursor: Option<RangeCursor>,
}Expand description
Bounded result for a stateless cursor seek.
position_key/position_value report where the internal cursor lands for
the requested seek key. This is the exact key when found is true; otherwise
it is the closest leaf entry chosen by cursor navigation. entries are the
forward window starting at the first key greater than or equal to the seek
key, and next_cursor resumes after the last emitted entry.
Fields§
§position_key: Option<Vec<u8>>§position_value: Option<Vec<u8>>§found: bool§entries: Vec<(Vec<u8>, Vec<u8>)>§next_cursor: Option<RangeCursor>Trait Implementations§
Source§impl Clone for CursorWindow
impl Clone for CursorWindow
Source§fn clone(&self) -> CursorWindow
fn clone(&self) -> CursorWindow
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CursorWindow
impl Debug for CursorWindow
Source§impl Default for CursorWindow
impl Default for CursorWindow
Source§fn default() -> CursorWindow
fn default() -> CursorWindow
Returns the “default value” for a type. Read more
impl Eq for CursorWindow
Source§impl PartialEq for CursorWindow
impl PartialEq for CursorWindow
impl StructuralPartialEq for CursorWindow
Auto Trait Implementations§
impl Freeze for CursorWindow
impl RefUnwindSafe for CursorWindow
impl Send for CursorWindow
impl Sync for CursorWindow
impl Unpin for CursorWindow
impl UnsafeUnpin for CursorWindow
impl UnwindSafe for CursorWindow
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more