Crate gregtatum_symbol_table
source ·Expand description
A fast and efficient symbol table for making it easy to work cheaply with strings.
Stores a unique list of strings, so that strings can be operated upon via stable
indexes, which are stored in the Symbol
type. This makes for cheap comparisons
and easy storage of references to strings. The strings are accessed as Symbol
s
that have a fn str() -> &str
.
Structs
- A cheap reference to a
String
in theSymbolTable
. The only lifetime constraint is that it must outlive the StringTable. This makes it easy to operate on strings and store references to pieces of them. - Stores a unique list of strings, so that strings can be operated upon via stable indexes, which are stored in the
Symbol
type. This makes for cheap comparisons and easy storage of references to strings. The strings are accessed asSymbol
s that have afn str() -> &str
method.
Type Definitions
- An index into the symbol vector.