pub struct Num { /* private fields */ }Expand description
Builder for numeric predicates.
Implementations§
Source§impl Num
impl Num
Sourcepub fn eq(self, value: f64) -> FilterExpression
pub fn eq(self, value: f64) -> FilterExpression
Matches values equal to the supplied value.
Sourcepub fn ne(self, value: f64) -> FilterExpression
pub fn ne(self, value: f64) -> FilterExpression
Negates values equal to the supplied value.
Sourcepub fn gt(self, value: f64) -> FilterExpression
pub fn gt(self, value: f64) -> FilterExpression
Matches values greater than the supplied value.
Sourcepub fn gte(self, value: f64) -> FilterExpression
pub fn gte(self, value: f64) -> FilterExpression
Matches values greater than or equal to the supplied value.
Sourcepub fn lt(self, value: f64) -> FilterExpression
pub fn lt(self, value: f64) -> FilterExpression
Matches values less than the supplied value.
Sourcepub fn lte(self, value: f64) -> FilterExpression
pub fn lte(self, value: f64) -> FilterExpression
Matches values less than or equal to the supplied value.
Sourcepub fn between(
self,
left: f64,
right: f64,
inclusive: BetweenInclusivity,
) -> FilterExpression
pub fn between( self, left: f64, right: f64, inclusive: BetweenInclusivity, ) -> FilterExpression
Matches values between the supplied bounds.
Sourcepub fn is_missing(self) -> FilterExpression
pub fn is_missing(self) -> FilterExpression
Matches documents where this numeric field is absent.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Num
impl RefUnwindSafe for Num
impl Send for Num
impl Sync for Num
impl Unpin for Num
impl UnsafeUnpin for Num
impl UnwindSafe for Num
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreCreates a shared type from an unshared type.