Crate typemap_rev

Source
Expand description

A hashmap whose keys are defined by types.

Structs§

OccupiedEntry
TypeMap
TypeMap is a simple abstraction around the standard library’s HashMap type, where types are its keys. This allows for statically-checked value retrieval.
VacantEntry

Enums§

Entry
A view into a single entry in the TypeMap, which may either be vacant or occupied.

Traits§

CloneDebuggableStorage
Storage type that allows cloning and formatting a TypeMap in debug representation if the values inside it all implement Clone and Debug.
CloneableStorage
Storage type that allows cloning a TypeMap if the values inside it all implement Clone.
DebuggableStorage
Storage type that allows formatting a TypeMap in debug representation if the values inside it all implement Debug.
TypeMapKey
TypeMapKey is used to declare key types that are eligible for use with TypeMap.

Type Aliases§

DefaultStorage
The default type used for storing values in a TypeMap.