pub trait Highlight: Sized + for<'a> Logos<'a, Source = str> {
const LANG: &'static str;
const START: Self;
// Required method
fn kind(tokens: &[Self; 2]) -> Kind;
}Expand description
A type of token that can be highlighted.
Required Associated Constants§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.