pub enum SeekOp {
GE {
eq_only: bool,
},
GT,
LE {
eq_only: bool,
},
LT,
}Expand description
The match condition of a table/index seek.
Variants§
GE
If eq_only is true, this means in practice: We are iterating forwards, but we are really looking for an exact match on the seek key.
GT
LE
If eq_only is true, this means in practice: We are iterating backwards, but we are really looking for an exact match on the seek key.
LT
Implementations§
Source§impl SeekOp
impl SeekOp
Sourcepub fn iteration_direction(&self) -> IterationDirection
pub fn iteration_direction(&self) -> IterationDirection
A given seek op implies an iteration direction.
For example, a seek with SeekOp::GT implies: Find the first table/index key that compares greater than the seek key -> used in forwards iteration.
A seek with SeekOp::LE implies: Find the last table/index key that compares less than or equal to the seek key -> used in backwards iteration.
pub fn eq_only(&self) -> bool
pub fn reverse(&self) -> Self
Trait Implementations§
impl Copy for SeekOp
impl Eq for SeekOp
impl StructuralPartialEq for SeekOp
Auto Trait Implementations§
impl Freeze for SeekOp
impl RefUnwindSafe for SeekOp
impl Send for SeekOp
impl Sync for SeekOp
impl Unpin for SeekOp
impl UnsafeUnpin for SeekOp
impl UnwindSafe for SeekOp
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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<K, Q> Equivalent<Q> for K
impl<K, Q> Equivalent<Q> for K
Source§fn equivalent(&self, key: &Q) -> bool
fn equivalent(&self, key: &Q) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more