Trait proc_macro_kwargs::args::MacroKeywordArgs[][src]

pub trait MacroKeywordArgs: MacroArg + Parse {
    type ArgId: KeywordArgId;
    type ParsedArg: ParsedArgValue<Self::ArgId>;
    fn from_keyword_args(
        kwargs: ParsedKeywordArguments<Self>
    ) -> Result<Self, Error>; }
Expand description

The whole point.

Defines the interface for parsing keyword args.

A set of argument can itself be nested as a MacroArg, provided it is wrapped in braces { }

Associated Types

The id of an argument.

The runtime value of a parsed argument

Required methods

Create the parsed arguments struct from its list of arguments

Implementors