fusefilter 0.1.0

No alloc membership approximation
Documentation
use core::any::TypeId;
use std::thread;
use fusefilter::*;

fn main() {
    const STACK_SIZE: usize = 20000 * 20000;
    let t = thread::Builder::new()
        .stack_size(STACK_SIZE)
        .spawn(run)
        .unwrap();
    t.join().unwrap();
}

fn run() {
    const size: usize = 1000009;
    let mut keys = [0; size];

    for i in 0..size {
        keys[i] = i as u64;
    }

    let mut f: Fuse<usize, { size }> = Fuse::try_from(&keys);

    for i in 0..10 {
        dbg!(f.contains(&keys[i]));
    }
}