#typemap #map #hash

fxtypemap

A fast type map based on internal hasher used in Firefox and Rustc

3 unstable releases

0.2.0 Dec 16, 2020
0.1.1 Jan 18, 2020
0.1.0 Jan 18, 2020

#2001 in Algorithms

MIT license

7KB
146 lines

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>());

Dependencies

~135KB