pub trait Frontend {
// Required methods
fn language(&self) -> Language;
fn frontend_version(&self) -> &'static str;
fn lex(&self, source: &str) -> LexedFile;
}Expand description
A Fast-mode lexer for one language.
Required Methods§
Sourcefn frontend_version(&self) -> &'static str
fn frontend_version(&self) -> &'static str
The frontend’s version tag, used as a fingerprint input.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".