ParsedArgValue

Trait ParsedArgValue 

Source
pub trait ParsedArgValue<Id: KeywordArgId>: Sized {
    // Required methods
    fn id(&self) -> Id;
    fn parse_with_id(
        id: Id,
        id_span: Span,
        stream: ParseStream<'_>,
    ) -> Result<Self>;
}
Expand description

The runtime value of a parsed argument

Required Methods§

Source

fn id(&self) -> Id

Return the corresponding id

Source

fn parse_with_id(id: Id, id_span: Span, stream: ParseStream<'_>) -> Result<Self>

Parse the argument with the specified id

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.

Implementors§