Expand description
Parsing helpers for procedural-macro attribute arguments.
Structs§
- Args
- A parsed set of macro attribute arguments, keyed by argument name.
- Ident
Wraper - A newtype wrapper around an identifier that implements
Parseto consume an identifier from the input stream regardless of keyword status.
Enums§
- Assignment
Value - A value appearing on the right-hand side of an
=assignment. - Evaluation
Value - A value appearing in evaluation position, e.g. inside a delimited group.
- Item
- A single lexical item encountered while parsing attribute arguments.
- Value
- The value associated with an argument, distinguishing values parsed in
evaluation position from those parsed on the right-hand side of an
=.
Functions§
- get_
attributes - Parses the contents of the given attribute into
Args, returningNoneif the attribute arguments fail to parse.