thinset 0.4.0

A data structure for sparse sets of unsigned integers that sacrifices space for speed.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use thinset::{set, SparseSet};

fn main() {
    let mut set: SparseSet<u32> = set![4, 32, 16, 24, 63];
    assert!(set.contains(32));
    assert!(set.contains(63));

    set.insert(25);

    println!("Set contents:");
    for x in set.iter() {
        println!("{x}");
    }
}