pathgraph 0.5.0-rc.3

Array-indexed hashmap
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use pathgraph::PathGraph;

fn main() {
    let mut map = PathGraph::new();

    map.insert(&[0], 1);
    map.insert(&[1], 2);
    map.insert(&[2], 3);

    map.insert(&[0, 0], 4);
    map.insert(&[0, 1], 5);
    map.insert(&[0, 1, 0], 6);
    map.insert(&[0, 1, 0], 7);
    map.remove(&[0, 1, 0]);
    map.insert(&[0, 1, 0], 7);

    println!("{map:#?}");
}