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§
- Deterministic
Hash Builder - A
BuildHasher
that builds a determinstically seeded AHasher - Global
Symbol - A interned string in the global symbol table.
- Symbol
- An interned symbol.
- Symbol
Table - A table in which you can intern strings and get back
Symbol
s.
Constants§
- DEFAULT_
N_ SHARDS - The default number of sharded in the
SymbolTable
.