Enum idb_sys::CursorDirection
source · 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 moresource§impl Debug for CursorDirection
impl Debug for CursorDirection
source§impl Default for CursorDirection
impl Default for CursorDirection
source§fn default() -> CursorDirection
fn default() -> CursorDirection
source§impl From<CursorDirection> for IdbCursorDirection
impl From<CursorDirection> for IdbCursorDirection
source§fn from(direction: CursorDirection) -> Self
fn from(direction: CursorDirection) -> Self
source§impl From<CursorDirection> for JsValue
impl From<CursorDirection> for JsValue
source§fn from(direction: CursorDirection) -> Self
fn from(direction: CursorDirection) -> Self
source§impl PartialEq for CursorDirection
impl PartialEq for CursorDirection
source§fn eq(&self, other: &CursorDirection) -> bool
fn eq(&self, other: &CursorDirection) -> bool
self
and other
values to be equal, and is used
by ==
.