pub trait ParseTo: Sized {
// Required method
fn parse_to(parser: &mut Parser<'_>) -> ModalResult<Self>;
}
Expand description
Consumes token from the parser into an AST node.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.