pub trait Parse: Sized {
// Required method
fn parse(context: &ParseContext<'_>) -> Result<Self, ParseErrors>;
}Expand description
Parse trait.
Required Methods§
Sourcefn parse(context: &ParseContext<'_>) -> Result<Self, ParseErrors>
fn parse(context: &ParseContext<'_>) -> Result<Self, ParseErrors>
Parse from a context.
The context also contains the source string.
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.