1.15.0[−][src]Crate proc_macro
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
function-like macros #[proc_macro]
, macro attributes #[proc_macro_attribute]
and
custom derive attributes#[proc_macro_derive]
.
See the book for more.
Modules
tracked_env | Experimental Tracked access to environment variables. |
token_stream | Public implementation details for the |
Macros
quote | Experimental
|
Structs
Diagnostic | Experimental A structure representing a diagnostic message and associated children messages. |
LineColumn | Experimental A line-column pair representing the start or end of a |
SourceFile | Experimental The source file of a given |
Group | A delimited token stream. |
Ident | An identifier ( |
LexError | Error returned from |
Literal | A literal string ( |
Punct | An |
Span | A region of source code, along with macro expansion information. |
TokenStream | 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. |
Enums
Level | Experimental An enum representing a diagnostic level. |
Delimiter | Describes how a sequence of token trees is delimited. |
Spacing | Whether an |
TokenTree | A single token or a delimited sequence of token trees (e.g., |
Traits
MultiSpan | Experimental Trait implemented by types that can be converted into a set of |
Functions
is_available | Experimental Determines whether proc_macro has been made accessible to the currently running program. |
quote | Experimental Quote a |
quote_span | Experimental Quote a |