Crate polymap

Source
Expand description

Mapping containers of heterogeneous values

polymap provides implementations of two mapping containers for heterogeneous values:

  • PolyMap, which maps keys to values of varying type.
  • TypeMap, which stores values according to their type.

Re-exports§

pub use polymap::PolyMap;
pub use typemap::TypeMap;

Modules§

polymap
Provides the PolyMap implementation, mapping keys to heterogeneous values
typemap
Provides the TypeMap implementation, mapping types to values