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§

source

fn globals(&mut self) -> ExpnGlobals<Self::Span>

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

fn intern_symbol(ident: &str) -> Self::Symbol

🔬This is a nightly-only experimental API. (proc_macro_internals #27812)

Intern a symbol received from RPC

source

fn with_symbol_string(symbol: &Self::Symbol, f: impl FnOnce(&str))

🔬This is a nightly-only experimental API. (proc_macro_internals #27812)

Recover the string value of a symbol, and invoke a callback with it.

Implementors§