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
sourceimpl Clone for CursorDirection
impl Clone for CursorDirection
sourcefn clone(&self) -> CursorDirection
fn clone(&self) -> CursorDirection
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for CursorDirection
impl Debug for CursorDirection
sourceimpl Default for CursorDirection
impl Default for CursorDirection
sourceimpl From<CursorDirection> for IdbCursorDirection
impl From<CursorDirection> for IdbCursorDirection
sourcefn from(direction: CursorDirection) -> Self
fn from(direction: CursorDirection) -> Self
Converts to this type from the input type.
sourceimpl From<CursorDirection> for JsValue
impl From<CursorDirection> for JsValue
sourcefn from(direction: CursorDirection) -> Self
fn from(direction: CursorDirection) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<CursorDirection> for CursorDirection
impl PartialEq<CursorDirection> for CursorDirection
sourceimpl TryFrom<IdbCursorDirection> for CursorDirection
impl TryFrom<IdbCursorDirection> for CursorDirection
sourceimpl TryFrom<JsValue> for CursorDirection
impl TryFrom<JsValue> for CursorDirection
impl Copy for CursorDirection
impl Eq for CursorDirection
impl StructuralEq for CursorDirection
impl StructuralPartialEq for CursorDirection
Auto Trait Implementations
impl RefUnwindSafe for CursorDirection
impl Send for CursorDirection
impl Sync for CursorDirection
impl Unpin for CursorDirection
impl UnwindSafe for CursorDirection
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more