pub trait Parse<C: Context>: Debug + Sized {
type Parsed: Into<Self>;
type Error: Error;
// Required method
fn parse(self, ctx: &mut C) -> Result<Self::Parsed, Self::Error>;
}
Available on crate feature
parse
only.Expand description
A parse trait.
Required Associated Types§
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.