Struct proc_macro_kwargs::args::KeywordArg[][src]

pub struct KeywordArg<K: MacroKeywordArgs> {
    pub name: Ident,
    pub id: K::ArgId,
    pub value: K::ParsedArg,
}
Expand description

A parsed argument, along with its original name and id.

Fields

name: Ident

The name of this argument, as a Ident

This is needed in addition to id, because it contains a Span

id: K::ArgId

The id of this argument

value: K::ParsedArg

The parsed value of this argument

Trait Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.