Expand description
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.
Modules§
- kw
- This module contains all the defined keyword
Symbol
s. - sym
- This module contains all the defined non-keyword
Symbol
s.
Structs§
- Ident
- Ident
Printer - The most general type to print identifiers.
- Interner 🔒
- Interner
Inner 🔒 - Macro
Rules Normalized Ident - An newtype around
Ident
that calls Ident::normalize_to_macro_rules on construction. - Symbol
- An interned string.
- Symbol
Index 🔒
Constants§
- PREINTERNED_
SYMBOLS_ 🔒COUNT - STDLIB_
STABLE_ CRATES - Symbols for crates that are part of the stable standard library:
std
,core
,alloc
, andproc_macro
. - SYMBOL_
DIGITS_ 🔒BASE
Functions§
- used_
keywords - Collect all the keywords in a given edition into a vector.