pub enum Matcher {
Literal {
pattern: String,
},
Regex(Regex),
}Expand description
Abstraction over literal and regex matching.
Variants§
Literal
Regex(Regex)
A regex matcher — used for both explicit --regex patterns and as the
implementation backing case-insensitive literal matching (via
regex::escape + (?i)), which avoids byte-offset mismatches from
str::to_lowercase() on multi-byte Unicode characters.
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