Crate proc_macro0

Source

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.
LineColumn
A line-column pair representing the start or end of a Span.
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 Punct is a single punctuation character like +, - or #.
SourceFile
The source file of a given Span.
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.

Enums§

Delimiter
Describes how a sequence of token trees is delimited.
Spacing
Whether a Punct is followed immediately by another Punct or followed by another token or whitespace.
TokenTree
A single token or a delimited sequence of token trees (e.g. [1, (), ..]).