Macro proc_macro::quote::quote
source · macro_rules! quote { () => { ... }; ($($t:tt)*) => { ... }; }
🔬This is a nightly-only experimental API. (
proc_macro_internals #27812)Expand description
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.
Note: supported tokens are a subset of the real quote!, but
unquoting is different: instead of $x, this uses (@ expr).