harper_core::patterns

Trait PatternExt

Source
pub trait PatternExt {
    // Required method
    fn find_all_matches(&self, tokens: &[Token], source: &[char]) -> Vec<Span>;
}

Required Methods§

Source

fn find_all_matches(&self, tokens: &[Token], source: &[char]) -> Vec<Span>

Search through all tokens to locate all non-overlapping pattern matches.

Implementors§

Source§

impl<P> PatternExt for P
where P: Pattern,