pub trait Lexer<LexerTypesT: LexerTypes>{
// Required method
fn iter<'a>(
&'a self,
) -> Box<dyn Iterator<Item = Result<LexerTypesT::LexemeT, LexerTypesT::LexErrorT>> + 'a>;
}Expand description
The base trait which all lexers which want to interact with lrpar must implement.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".