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 Symbols
that have a fn str() -> &str.
Structs§
- Symbol
- A cheap reference to a
Stringin 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. - Symbol
Table - Stores a unique list of strings, so that strings can be operated upon via stable
indexes, which are stored in the
Symboltype. This makes for cheap comparisons and easy storage of references to strings. The strings are accessed asSymbols that have afn str() -> &strmethod.
Type Aliases§
- Symbol
Index - An index into the symbol vector.