Polystore
A polymorphic data store:
// It's a HashMap<K = i32> storing polymorphic values:
let mut store = new;
// k1 is the key 1 tagged with the element type `&'static str`
let k1 = store.insert;
if let Some = store.get_mut
assert_eq!;
// untagged keys work too (relying on type inference, here `String`):
store.insert;
assert_eq!;
assert!;
assert!;
assert!;
Crate Features
Optional crate features:
fxhash
: addFxHashMap
using the rustc-hash crate
License
Polystore is distributed under the terms of both the MIT license and the Apache License (Version 2.0).
See LICENSE-APACHE and LICENSE-MIT, and COPYRIGHT for details.