Crate macros_utils

source ·

Macros

Structs

  • A stream of tokens.
  • A parse error encountered while parsing a MacroStream.
  • A region of source code, along with macro expansion information.

Enums

  • The delimiter of a group of tokens
  • The kind of literal.
  • The error type for this crate. Can be either a Parse(ParseError) from this crate or a User(Box<dyn Error + Send + Sync>) user error.
  • A match of a Pattern.
  • The specific kind of parse error encountered.
  • A pattern to match against a MacroStream in a parser from the parser! macro.
  • Whether a Punct is followed immediately by another Punct or followed by another token or whitespace.
  • A token in a macro.

Traits

  • Parse a MacroStream into a Self.
  • The trait for the output of a parser created by the parser! macro.
  • The representation of an item as tokens to recreate it.

Functions

  • A shortcut for proc_macro2::Span::call_site().

Type Definitions

  • Type alias for the result of parsing to a MacroStream.