๐ฌThis is a nightly-only experimental API. (
proc_macro_internals)Expand description
Client-side interner used for symbols.
This is roughly based on the symbol interner from rustc_span and the
DroplessArena from rustc_arena. It is unfortunately a complete
copy/re-implementation rather than a dependency as it is difficult to depend
on crates from within proc_macro, due to it being built at the same time
as std.
If at some point in the future it becomes easier to add dependencies to proc_macro, this module should probably be removed or simplified.
Re-exportsยง
use std::cell::RefCell;๐use std::fmt;๐use std::num::NonZero;๐use crate::bridge::Buffer;๐Experimental use crate::bridge::Decode;๐Experimental use crate::bridge::Encode;๐Experimental use crate::bridge::Mark;๐Experimental use crate::bridge::arena;๐Experimental use crate::bridge::client;๐Experimental use crate::bridge::fxhash;๐Experimental use crate::bridge::server;๐Experimental
Structsยง
- Interner ๐
Experimental - Basic interner for a
Symbol, inspired by the one inrustc_span. - Symbol
Experimental - Handle for a symbol string stored within the Interner.
Constantsยง
- INTERNER ๐
Experimental