Trait proc_macro::bridge::server::Server
source · pub trait Server: Types + FreeFunctions + TokenStream + SourceFile + Span + Symbol {
// Required methods
fn globals(&mut self) -> ExpnGlobals<Self::Span>;
fn intern_symbol(ident: &str) -> Self::Symbol;
fn with_symbol_string(symbol: &Self::Symbol, f: impl FnOnce(&str));
}
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)Required Methods§
sourcefn globals(&mut self) -> ExpnGlobals<Self::Span>
fn globals(&mut self) -> ExpnGlobals<Self::Span>
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)sourcefn intern_symbol(ident: &str) -> Self::Symbol
fn intern_symbol(ident: &str) -> Self::Symbol
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)Intern a symbol received from RPC