pub trait TokenRecognizer<'i> { // Provided method fn recognize(&self, _input: &'i str) -> Option<&'i str> { ... } }
The trait implemented by types used to recognize tokens in string inputs. Used by StringLexer.
StringLexer