Expand description
Global symbol interning for reversible string-to-ID mapping.
Structs§
- Symbol
Snapshot - Owned symbol meanings copied together from one registry state.
Enums§
- Symbol
Snapshot Error - A complete symbol snapshot could not be admitted within its caller’s bounds.
Functions§
- clear
- Clear all symbols. For testing/REPL only. WARNING: Invalidates all existing symbol IDs.
- count
- Number of interned symbols.
- from_
arrow - Convert Arrow DictionaryArray back to symbol IDs.
- intern
- Intern a string, returning its unique ID. Thread-safe. Returns existing ID if already interned.
- memory_
usage - Estimated memory usage in bytes.
- resolve
- Resolve an ID to its string. Panics if ID is invalid.
- resolve_
checked - Resolve an ID to its string if present.
- snapshot_
checked - Copies all requested symbols under one read lock, or returns no snapshot.
- to_
arrow - Convert a column of symbol IDs to Arrow DictionaryArray.