pub trait FromGram: Sized {
// Required method
fn from_gram(input: &str) -> Result<Self, ParseError>;
}Expand description
Extension trait for constructing types from gram notation.
Required Methods§
fn from_gram(input: &str) -> Result<Self, ParseError>
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.