pub trait ExprExt {
// Required methods
fn iter_matches<'a>(
&'a self,
tokens: &'a [Token],
source: &'a [char],
) -> Box<dyn Iterator<Item = Span> + 'a>;
fn iter_matches_in_doc<'a>(
&'a self,
doc: &'a Document,
) -> Box<dyn Iterator<Item = Span> + 'a>;
}
Required Methods§
Sourcefn iter_matches<'a>(
&'a self,
tokens: &'a [Token],
source: &'a [char],
) -> Box<dyn Iterator<Item = Span> + 'a>
fn iter_matches<'a>( &'a self, tokens: &'a [Token], source: &'a [char], ) -> Box<dyn Iterator<Item = Span> + 'a>
Iterate over all matches of this expression in the document, automatically filtering out overlapping matches, preferring the first.