pub trait Logos: Sized {
type Extras: Extras;
const SIZE: usize;
const ERROR: Self;
fn lexicon<S: Source>() -> Lexicon<Self, S>;
}
Expand description
Trait that will be derived for the appropriate enum representing all the tokens
pub trait Logos: Sized {
type Extras: Extras;
const SIZE: usize;
const ERROR: Self;
fn lexicon<S: Source>() -> Lexicon<Self, S>;
}
Trait that will be derived for the appropriate enum representing all the tokens