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;
}
Required Associated Types§
type FirstToken: CheckParses
Required Methods§
sourcefn parse<'t, I: Iterator<Item = &'t Token> + Clone>(
input: &mut InputStream<'t, I>,
) -> Result<Self, Error>where
Self: Sized,
fn parse<'t, I: Iterator<Item = &'t Token> + Clone>(
input: &mut InputStream<'t, I>,
) -> Result<Self, Error>where
Self: Sized,
§Errors
Returns an error if parsing was unsuccessful.