Trait Parse

Source
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.

Required Methods§

Source

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.

Implementations on Foreign Types§

Source§

impl<T: Parse> Parse for Vec<T>

Source§

fn parse(input: ParseStream<'_>) -> Result<Self>

Implementors§