Parser

Trait Parser 

Source
pub(crate) trait Parser {
    // Provided method
    fn parse<T: Parse + Any>(&self, input: ParseStream<'_>) -> Result<T> { ... }
}
Expand description

Parseing with additional state or metadata.

Provided Methods§

Source

fn parse<T: Parse + Any>(&self, input: ParseStream<'_>) -> Result<T>

Parses an item, using additional state or metadata.

Default implementation just calls Parse::parse() directly.

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 Parser for ()

Implementors§