pub trait Token {
type Rule;
// Required methods
fn start(&self) -> usize;
fn end(&self) -> usize;
fn rule(&self) -> Self::Rule;
}Expand description
Parser output tokens should implement this trait
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".