Skip to main content

Module symbol

Module symbol 

Source
๐Ÿ”ฌ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 in rustc_span.
SymbolExperimental
Handle for a symbol string stored within the Interner.

Constantsยง

INTERNER ๐Ÿ”’ Experimental