Crate symbol_table

Source
Expand description

This crate provides an easy-to-use SymbolTable that’s fast, suitable for concurrent access, and provides stable &str references for resolved symbols.

With the global feature enabled, the provided GlobalSymbol type provides a lot of convenience methods and trait implementations for converting to/from strings.

Macros§

static_symbol
Macro for creating symbols from &’static str. Useful for commonly used symbols known at compile time. This is faster then GlobalSymbol::from(s) by avoiding mutex contention.

Structs§

DeterministicHashBuilder
A BuildHasher that builds a determinstically seeded AHasher
GlobalSymbol
A interned string in the global symbol table.
Symbol
An interned symbol.
SymbolTable
A table in which you can intern strings and get back Symbols.

Constants§

DEFAULT_N_SHARDS
The default number of sharded in the SymbolTable.