pub enum Matcher {
Rx(Regex),
Pm(Vec<String>),
Contains(String),
BeginsWith(String),
EndsWith(String),
Within(String),
StrEq(String),
}Expand description
A compiled operator ready to test a (already transformed) value.
Variants§
Rx(Regex)
Pm(Vec<String>)
@pm — lowercased phrases; matches if the value contains ANY (case-insensitive).
Contains(String)
BeginsWith(String)
EndsWith(String)
Within(String)
@within — the value must be a substring of the operator’s parameter set.
StrEq(String)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Matcher
impl RefUnwindSafe for Matcher
impl Send for Matcher
impl Sync for Matcher
impl Unpin for Matcher
impl UnsafeUnpin for Matcher
impl UnwindSafe for Matcher
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