pub struct ContainsImpl { /* private fields */ }
Available on crate feature
filter
only.Expand description
Match when the string representation of the value contains the target.
Trait Implementations§
Source§impl<T> Operator<T> for ContainsImplwhere
T: Display,
impl<T> Operator<T> for ContainsImplwhere
T: Display,
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 Freeze for ContainsImpl
impl RefUnwindSafe for ContainsImpl
impl Send for ContainsImpl
impl Sync for ContainsImpl
impl Unpin for ContainsImpl
impl UnwindSafe for ContainsImpl
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