pub trait ParseTo: Sized {
// Required method
fn parse_to(parser: &mut Parser<'_>) -> PResult<Self>;
}
Expand description
Consumes token from the parser into an AST node.
Required Methods§
Object Safety§
This trait is not object safe.
pub trait ParseTo: Sized {
// Required method
fn parse_to(parser: &mut Parser<'_>) -> PResult<Self>;
}
Consumes token from the parser into an AST node.