pub struct LessEqImpl<T> { /* private fields */ }
Available on crate feature
filter
only.Expand description
Match when the value is less than or equal to the target.
Trait Implementations§
Source§impl<T> Operator<T> for LessEqImpl<T>where
T: Ord,
impl<T> Operator<T> for LessEqImpl<T>where
T: Ord,
Source§fn apply(&self, value: &T) -> bool
fn apply(&self, value: &T) -> bool
Apply this operator a single value, producing a true/false
result.
Source§fn empty_collection(&self) -> bool
fn empty_collection(&self) -> bool
Return a value for this operator when applied to an empty
collection. Implicitly, operators are distributed over
collections with
any
semantics, so that any true
result
means the collection evaluates to true
. The default
behaviour for this method is to return false
, which is
consistent with those semantics.Source§fn null_option(&self) -> bool
fn null_option(&self) -> bool
Return a value for this operator when applied to a ). This is required
because we automatically implement all operators on Option,
but in rare cases the operator’s behaviour isn’t well captured
by returning
None
value wrapping its target type (e.g. for an operator on T, we
are determining the behaviour on Optionfalse
for None
(e.g for. isnull
).Auto Trait Implementations§
impl<T> Freeze for LessEqImpl<T>where
T: Freeze,
impl<T> RefUnwindSafe for LessEqImpl<T>where
T: RefUnwindSafe,
impl<T> Send for LessEqImpl<T>where
T: Send,
impl<T> Sync for LessEqImpl<T>where
T: Sync,
impl<T> Unpin for LessEqImpl<T>where
T: Unpin,
impl<T> UnwindSafe for LessEqImpl<T>where
T: UnwindSafe,
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