[][src]Module syntax::symbol

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

keywords

Structs

Ident
InternedString

Represents a string stored in the string interner.

Interner
LocalInternedString

Represents a string stored in the interner. Because the interner outlives any thread which uses this type, we can safely treat string which points to interner data, as an immortal string, as long as this type never crosses between threads.

Symbol

A symbol is an interned or gensymed string. The use of newtype_index! means that Option only takes up 4 bytes, because newtype_index! reserves the last 256 values for tagging purposes.

SymbolIndex