Module proc_macro2
A preferred wrapper around the standard proc_macro crate.
See crate ::proc_macro2.
Modules
- extra Items which do not have a correspondence to any API in the proc_macro crate, but are necessary to include in proc-macro2.
-
token_stream
Public implementation details for the
TokenStreamtype, such as iterators.
Structs
- Group A delimited token stream.
- Ident A word of Rust code, which may be a keyword or legal variable name.
-
LexError
Error returned from
TokenStream::from_str. -
Literal
A literal string (
"hello"), byte string (b"hello"), character ('a'), byte character (b'a'), an integer or floating point number with or without a suffix (1,1u8,2.3,2.3f32). -
Punct
A
Punctis a single punctuation character like+,-or#. - Span A region of source code, along with macro expansion information.
- TokenStream An abstract stream of tokens, or more concretely a sequence of token trees.