Module macro_tools::prelude

source ·
Expand description

Prelude to use essentials: use my_module::prelude::*.

Re-exports§

Modules§

Macros§

  • A type-macro that expands to the name of the Rust type representation of a given token.
  • Parse a set of curly braces and expose their content to subsequent parsers.
  • Parse a set of square brackets and expose their content to subsequent parsers.
  • Define a type that supports parsing and printing a given identifier as if it were a keyword.
  • Define a type that supports parsing and printing a multi-character symbol as if it were a punctuation token.
  • Formatting macro for constructing Idents.
  • Parse a set of parentheses and expose their content to subsequent parsers.
  • Parse the input TokenStream of a macro, triggering a compile error if the tokens fail to parse.
  • Quasi-quotation macro that accepts input like the quote! macro but uses type inference to figure out a return type for those tokens.
  • This macro is parse_quote! + quote_spanned!.
  • Quasi-quotation macro that accepts input like the quote! macro but uses type inference to figure out a return type for those tokens.
  • This macro is parse_quote! + quote_spanned!.
  • The whole point.
  • The whole point.
  • Same as quote!, but applies a given span to all tokens originating within the macro invocation.

Traits§

  • Convert it into canonical interval.
  • Interval adapter. Interface to interval-like structures.
  • Interval adapter. Interface to interval-like structures.
  • A trait that can provide the Span of the complete contents of a syntax tree node.

Type Aliases§