pub trait Parser {
type R: RuleType;
// Required methods
fn parse_to_node(code: &str) -> Result<Expr, ParserError>;
fn default_comparisons( ) -> &'static HashMap<&'static str, &'static Comparison>;
}
Required Associated Types§
Required Methods§
fn parse_to_node(code: &str) -> Result<Expr, ParserError>
fn default_comparisons() -> &'static HashMap<&'static str, &'static Comparison>
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.