rustmax

Module proc_macro2

Source
Expand description

A preferred wrapper around the standard proc_macro crate.

See crate ::proc_macro2.

Modules§

  • Items which do not have a correspondence to any API in the proc_macro crate, but are necessary to include in proc-macro2.
  • Public implementation details for the TokenStream type, such as iterators.

Structs§

  • A delimited token stream.
  • A word of Rust code, which may be a keyword or legal variable name.
  • Error returned from TokenStream::from_str.
  • A line-column pair representing the start or end of a Span.
  • 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).
  • A Punct is a single punctuation character like +, - or #.
  • A region of source code, along with macro expansion information.
  • An abstract stream of tokens, or more concretely a sequence of token trees.

Enums§

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