pub trait AstNode: Sized {
const RULE: Rule;
// Required methods
fn parse(pair: Pair<'_, Rule>) -> Result<Self, Error>;
fn span(&self) -> &Span;
}Required Associated Constants§
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.