[−][src]Trait generic_lexer::Matcher
A matcher fn matches a character (and and any following characters) and returns a T
to indicate the kind of token (see Token
)
Required methods
fn try_match(&self, first_char: char, input: &mut LexerInput) -> MatchResult<K>
Implementors
impl<F, K> Matcher<K> for F where
F: Fn(char, &mut LexerInput) -> MatchResult<K>,
[src]
F: Fn(char, &mut LexerInput) -> MatchResult<K>,