A support library for macro authors when defining new macros.
This library, provided by the standard distribution, provides the types
consumed in the interfaces of procedurally defined macro definitions such as
#[proc_macro], macro attributes
custom derive attributes
See the book for more.
Public implementation details for the
A delimited token stream.
An identifier (
Error returned from
A literal string (
A region of source code, along with macro expansion information.
The main type provided by this crate, representing an abstract stream of tokens, or, more specifically, a sequence of token trees. The type provide interfaces for iterating over those token trees and, conversely, collecting a number of token trees into one stream.
A structure representing a diagnostic message and associated children messages.
A line-column pair representing the start or end of a
The source file of a given
Describes how a sequence of token trees is delimited.
A single token or a delimited sequence of token trees (e.g.,
An enum representing a diagnostic level.
Trait implemented by types that can be converted into a set of
Determines whether proc_macro has been made accessible to the currently running program.