pub trait Parse: Sized {
// Required method
fn parse(input: ParseStream<'_>) -> Result<Self>;
}
Expand description
Parsing interface implemented by all types that can be parsed in a default way from a token stream.
Refer to the module documentation for details about implementing and using
the Parse
trait.
Required Methods§
fn parse(input: ParseStream<'_>) -> Result<Self>
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.