pub struct ExactImpl<T> { /* private fields */ }
Available on crate feature
filter
only.Expand description
Match when the value is equal to the target.
Trait Implementations§
Source§impl<T> Operator<T> for ExactImpl<T>where
T: Eq,
impl<T> Operator<T> for ExactImpl<T>where
T: Eq,
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 ExactImpl<T>where
T: Freeze,
impl<T> RefUnwindSafe for ExactImpl<T>where
T: RefUnwindSafe,
impl<T> Send for ExactImpl<T>where
T: Send,
impl<T> Sync for ExactImpl<T>where
T: Sync,
impl<T> Unpin for ExactImpl<T>where
T: Unpin,
impl<T> UnwindSafe for ExactImpl<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