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