Crate typemap_rev
source ·Expand description
A hashmap whose keys are defined by types.
Structs
- TypeMap is a simple abstraction around the standard library’s
HashMap
type, where types are its keys. This allows for statically-checked value retrieval.
Enums
- A view into a single entry in the
TypeMap
, which may either be vacant or occupied.
Traits
- TypeMapKey is used to declare key types that are eligible for use with
TypeMap
.
Type Definitions
- The default type used for storing values in a
TypeMap
.