Module syntax_pos::symbol [−][src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
An "interner" is a data structure that associates values with usize tags and allows bidirectional lookup; i.e. given a value, one can easily find the type, and vice versa.
Re-exports
use hygiene::SyntaxContext; |
use Span; |
use DUMMY_SP; |
use GLOBALS; |
use rustc_data_structures::fx::FxHashMap; |
use serialize::Decodable; |
use serialize::Decoder; |
use serialize::Encodable; |
use serialize::Encoder; |
use std::fmt; |
use std::cmp::PartialEq; |
use std::cmp::Ordering; |
use std::cmp::PartialOrd; |
use std::cmp::Ord; |
use std::hash::Hash; |
use std::hash::Hasher; |
Modules
keywords |
[ Experimental ]
|
Structs
Ident |
[ Experimental ]
|
InternedString |
[ Experimental ] Represents a string stored in the string interner |
Interner |
[ Experimental ]
|
LocalInternedString |
[ Experimental ] Represents a string stored in the interner. Because the interner outlives any thread
which uses this type, we can safely treat |
Symbol |
[ Experimental ] A symbol is an interned or gensymed string. |
Functions
with_interner |
[ Experimental ]
|