fxtypemap

Crates.iofxtypemap
lib.rsfxtypemap
version0.2.0
sourcesrc
created_at2020-01-18 07:21:50.143658
updated_at2020-12-16 08:05:43.194404
descriptionA fast type map based on internal hasher used in Firefox and Rustc.
homepage
repositoryhttps://github.com/zero-systems/fxtypemap
max_upload_size
id199657
size7,296
(zero-systems)

documentation

README

FxTypeMap

It's simple typemap, based on crate fxhash.

Usage

let mut map = TypeMap::new();

map.insert::<String>(String::from("hello"));

assert!(map.get::<String>().is_some());
assert!(map.contains::<String>());
Commit count: 0

cargo fmt