This is not yet production ready.
This is a Rust port of the Roaring bitmap data structure, initially defined as a Java library and described in Better bitmap performance with Roaring bitmaps.
rust
let mut rr = roaring::RoaringBitmap::new();
for k in 4000..4255 {
rr.set(k, true);
}
assert!(bitmap.get(4100))