Skip to main content

Module attributes

Module attributes 

Source
Expand description

Parsing helpers for procedural-macro attribute arguments.

Structs§

Args
A parsed set of macro attribute arguments, keyed by argument name.
IdentWraper
A newtype wrapper around an identifier that implements Parse to consume an identifier from the input stream regardless of keyword status.

Enums§

AssignmentValue
A value appearing on the right-hand side of an = assignment.
EvaluationValue
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, returning None if the attribute arguments fail to parse.