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

Storage type that allows cloning and formatting a TypeMap in debug representation if the values inside it all implement Clone and Debug.
Storage type that allows cloning a TypeMap if the values inside it all implement Clone.
Storage type that allows formatting a TypeMap in debug representation if the values inside it all implement Debug.
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.