pub trait Logos: Sized {
type Extras: Extras;
const SIZE: usize;
const ERROR: Self;
fn lexicon<S: Source>() -> Lexicon<Lexer<Self, S>>;
fn lexer<S: Source>(source: S) -> Lexer<Self, S> { ... }
}
Expand description
Trait implemented for an enum representing all tokens. You should never have
to implement it manually, use the #[derive(Logos)]
attribute on your enum.