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