Enum lsmlite_rs::LsmCursorSeekOp
source · #[repr(C)]pub enum LsmCursorSeekOp {
LsmCursorSeekLe = -1,
LsmCursorSeekEq = 0,
LsmCursorSeekGe = 1,
}
Expand description
These are the different seek operations of a cursor.
Variants§
LsmCursorSeekLe = -1
When seeking with a LsmCursor
using this mode, the cursor
is positioned on the record indexed by the given key if found, or the
record right before it in the total order of keys (as per memcmp
).
If the database contains no such record, the cursor is left at EOF.
LsmCursorSeekEq = 0
When seeking with a LsmCursor
using the mode, the cursor
is positioned on the record indexed by the given key if found, or
at EOF if such record does not exist in the database.
LsmCursorSeekGe = 1
When seeking with a LsmCursor
using this mode, the cursor
is positioned on the record indexed by the given key if found, or the
record right after it in the total order of keys (as per memcmp
).
If the database contains no such record, the cursor is left at EOF.
Trait Implementations§
source§impl Clone for LsmCursorSeekOp
impl Clone for LsmCursorSeekOp
source§fn clone(&self) -> LsmCursorSeekOp
fn clone(&self) -> LsmCursorSeekOp
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LsmCursorSeekOp
impl Debug for LsmCursorSeekOp
source§impl PartialEq for LsmCursorSeekOp
impl PartialEq for LsmCursorSeekOp
source§fn eq(&self, other: &LsmCursorSeekOp) -> bool
fn eq(&self, other: &LsmCursorSeekOp) -> bool
self
and other
values to be equal, and is used
by ==
.