pub trait Parse {
type FirstToken: CheckParses;
// Required methods
fn parse<'t, I: Iterator<Item = &'t Token> + Clone>(
input: &mut InputStream<'t, I>,
) -> Result<Self, Error>
where Self: Sized;
fn get_span(&self) -> Span;
}
Expand description
The main trait for parsing tokens.
Required Associated Types§
Sourcetype FirstToken: CheckParses
type FirstToken: CheckParses
The first token of a structure.