pub enum CursorDirection {
Next,
NextUnique,
Prev,
PrevUnique,
}Expand description
Specifies the cursor direction.
Variants§
Next
Next causes the cursor to be opened at the start of the source. When iterated, the cursor yields all records,
including duplicates, in monotonically increasing order of keys.
NextUnique
NextUnique causes the cursor to be opened at the start of the source. When iterated, the cursor does not yield
records with the same key, but otherwise yields all records, in monotonically increasing order of keys.
Prev
Prev causes the cursor to be opened at the end of the source. When iterated, the cursor yields all records,
including duplicates, in monotonically decreasing order of keys.
PrevUnique
PrevUnique causes the cursor to be opened at the end of the source. When iterated, the cursor does not yield
records with the same key, but otherwise yields all records, in monotonically decreasing order of keys.
Trait Implementations§
Source§impl Clone for CursorDirection
impl Clone for CursorDirection
Source§fn clone(&self) -> CursorDirection
fn clone(&self) -> CursorDirection
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more