vector_mapp 0.3.3

A Vec based map
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use vector_mapp::binary::BinaryMap;

#[test]
fn alpha () {
    let mut v = BinaryMap::new();
    v.insert("hello", "world");
    v.insert("alex", "andreba");
    v.insert("rust 🦀", "is awesome");

    assert_eq!(v.get("hello"), Some(&"world"));
    assert_eq!(v.get("alex"), Some(&"andreba"));
    assert_eq!(v.get("rust 🦀"), Some(&"is awesome"));
    assert_eq!(v.get("python 🐍"), None);
}