๐ฌ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 throughmacro_rules
, for bootstrapping the real implementation (see thequote
function), which does not have access to the realquote!
macro due to theproc_macro
crate not being able to depend on itself. - minimal_
quote_ ๐ts Experimental - minimal_
quote_ ๐tt Experimental
Functionsยง
- quote
Experimental - Quote a
TokenStream
into aTokenStream
. This is the actual implementation of thequote!()
proc macro. - quote_
span Experimental - Quote a
Span
into aTokenStream
. This is needed to implement a custom quoter.