pub trait PatternMatcher {
// Required methods
fn is_match(&self, text: &[u8]) -> bool;
fn captures<'a>(&self, text: &'a [u8]) -> Option<Captures<'a>>;
}Expand description
Trait for pattern matching abstraction
pub trait PatternMatcher {
// Required methods
fn is_match(&self, text: &[u8]) -> bool;
fn captures<'a>(&self, text: &'a [u8]) -> Option<Captures<'a>>;
}Trait for pattern matching abstraction