pub enum Direction {
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 JsValue
impl From<CursorDirection> for JsValue
source§fn from(direction: CursorDirection) -> JsValue
fn from(direction: CursorDirection) -> JsValue
source§impl PartialEq for CursorDirection
impl PartialEq for CursorDirection
source§impl TryFrom<IdbCursorDirection> for CursorDirection
impl TryFrom<IdbCursorDirection> for CursorDirection
source§fn try_from(
direction: IdbCursorDirection,
) -> Result<CursorDirection, <CursorDirection as TryFrom<IdbCursorDirection>>::Error>
fn try_from( direction: IdbCursorDirection, ) -> Result<CursorDirection, <CursorDirection as TryFrom<IdbCursorDirection>>::Error>
source§impl TryFrom<JsValue> for CursorDirection
impl TryFrom<JsValue> for CursorDirection
impl Copy for CursorDirection
impl Eq for CursorDirection
impl StructuralPartialEq for CursorDirection
Auto Trait Implementations§
impl Freeze for CursorDirection
impl RefUnwindSafe for CursorDirection
impl Send for CursorDirection
impl Sync for CursorDirection
impl Unpin for CursorDirection
impl UnwindSafe for CursorDirection
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)