Skip to main content

PatternMatcher

Trait PatternMatcher 

Source
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

Required Methods§

Source

fn is_match(&self, text: &[u8]) -> bool

Source

fn captures<'a>(&self, text: &'a [u8]) -> Option<Captures<'a>>

Implementors§