Module proc_macro::quote

source ·
🔬This is a nightly-only experimental API. (proc_macro_internals #27812)
Expand description

Quasiquoter

This file contains the implementation internals of the quasiquoter provided by quote!. This quasiquoter uses macros 2.0 hygiene to reliably access items from proc_macro, to build a proc_macro::TokenStream.

Macros

  • quote 🔒 Experimental
    Simpler version of the real quote! macro, implemented solely through macro_rules, for bootstrapping the real implementation (see the quote function), which does not have access to the real quote! macro due to the proc_macro crate not being able to depend on itself.
  • quote_ts 🔒 Experimental
  • quote_tt 🔒 Experimental

Functions

  • quoteExperimental
    Quote a TokenStream into a TokenStream. This is the actual implementation of the quote!() proc macro.
  • quote_spanExperimental
    Quote a Span into a TokenStream. This is needed to implement a custom quoter.