pub struct MatchDescriptor {
pub kind: MatcherKind,
pub pattern: Option<String>,
pub case_sensitive: Option<bool>,
pub negated: bool,
}Expand description
A structural description of a compiled matcher, used to populate the
match-detail fields on a FieldMatch.
Purely descriptive: it reports the matcher’s shape and pattern, not
which value matched. Composite matchers collapse to
MatcherKind::OneOf with their child patterns joined.
Fields§
§kind: MatcherKindThe matcher kind that fired.
pattern: Option<String>The pattern the matcher tested against, truncated to MAX_PATTERN_LEN.
case_sensitive: Option<bool>Whether matching was case-sensitive, when meaningful.
negated: boolWhether the matcher is negated.
Trait Implementations§
Source§impl Clone for MatchDescriptor
impl Clone for MatchDescriptor
Source§fn clone(&self) -> MatchDescriptor
fn clone(&self) -> MatchDescriptor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MatchDescriptor
impl RefUnwindSafe for MatchDescriptor
impl Send for MatchDescriptor
impl Sync for MatchDescriptor
impl Unpin for MatchDescriptor
impl UnsafeUnpin for MatchDescriptor
impl UnwindSafe for MatchDescriptor
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