Module 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ยง

minimal_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.
minimal_quote_ts ๐Ÿ”’ Experimental
minimal_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.