Crates.io | fxtypemap |
lib.rs | fxtypemap |
version | 0.2.0 |
source | src |
created_at | 2020-01-18 07:21:50.143658 |
updated_at | 2020-12-16 08:05:43.194404 |
description | A fast type map based on internal hasher used in Firefox and Rustc. |
homepage | |
repository | https://github.com/zero-systems/fxtypemap |
max_upload_size | |
id | 199657 |
size | 7,296 |
It's simple typemap, based on crate fxhash.
let mut map = TypeMap::new();
map.insert::<String>(String::from("hello"));
assert!(map.get::<String>().is_some());
assert!(map.contains::<String>());