#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

#1764 in Algorithms

Download history 17/week @ 2024-02-18 43/week @ 2024-02-25 16/week @ 2024-03-03 39/week @ 2024-03-10 7/week @ 2024-03-17

106 downloads per month

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