#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

#1780 in Algorithms

Download history 19/week @ 2024-02-19 44/week @ 2024-02-26 19/week @ 2024-03-04 36/week @ 2024-03-11 4/week @ 2024-03-18 2/week @ 2024-03-25 69/week @ 2024-04-01 1/week @ 2024-04-08 1/week @ 2024-04-15

73 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