pub enum StringMatch {
Start,
Contains,
Exact,
}Expand description
How a string value matches a field.
Variants§
Start
No modifier: the field equals or starts with the value, both
folded.
Contains
:contains: the value appears anywhere in the field, both
folded.
Exact
:exact: the field is the value, “including casing and accents”.
Implementations§
Source§impl StringMatch
impl StringMatch
Sourcepub fn from_modifier(modifier: Option<&str>) -> Option<Self>
pub fn from_modifier(modifier: Option<&str>) -> Option<Self>
The match a string parameter’s modifier asks for, or None for a
modifier that is no string match (:missing, :text and the rest of
§3.1.1.4.4), which the caller reads or refuses.
Trait Implementations§
Source§impl Clone for StringMatch
impl Clone for StringMatch
impl Copy for StringMatch
Source§impl Debug for StringMatch
impl Debug for StringMatch
Source§impl Default for StringMatch
impl Default for StringMatch
impl Eq for StringMatch
Source§impl Hash for StringMatch
impl Hash for StringMatch
Source§impl PartialEq for StringMatch
impl PartialEq for StringMatch
impl StructuralPartialEq for StringMatch
Auto Trait Implementations§
impl Forget for StringMatch
impl Freeze for StringMatch
impl RefUnwindSafe for StringMatch
impl Send for StringMatch
impl Sync for StringMatch
impl Unpin for StringMatch
impl UnsafeUnpin for StringMatch
impl UnwindSafe for StringMatch
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