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

  • A cheap reference to a String in the SymbolTable. 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 as Symbols that have a fn str() -> &str method.

Type Definitions