Expand description
Runtime context for storing heterogeneous values by type.
This crate provides a lightweight type map with support for owned values and
borrowed (immutable or mutable) references. It is built on top of
better_any and uses an optimized
TypeId hasher for fast lookups.
Macros§
- tid
- Main safe implementation interface of related unsafe traits
Structs§
- Context
- Runtime context storing values by type.
- Type
IdHasher - A hasher for
TypeIds that takes advantage of its known characteristics.
Enums§
- Data
- Stored value variants inside a
Context.
Traits§
- Shareable
Tid - Thread-safe variant of
Tid.
Type Aliases§
- TypeMap
- A
HashMapoptimized forTypeIdkeys.