stable-map 0.15.0

A hash map with temporarily stable indices
Documentation
1
2
3
4
5
6
7
8
9
use crate::StableMap;

#[test]
fn test() {
    let map: StableMap<_, _> = [(1, 11), (2, 22)].into_iter().collect();
    assert_eq!(map.len(), 2);
    assert_eq!(map[&1], 11);
    assert_eq!(map[&2], 22);
}