roaring_bitmap

Crates.ioroaring_bitmap
lib.rsroaring_bitmap
version0.1.3
sourcesrc
created_at2022-11-13 13:41:38.33796
updated_at2022-11-14 02:20:35.595236
descriptionRoaring bitmap data structure implemented in Rust
homepagehttps://github.com/arcticherman/roaring_bitmap
repositoryhttps://github.com/arcticherman/roaring_bitmap
max_upload_size
id714207
size22,734
(arcticherman)

documentation

https://github.com/arcticherman/roaring_bitmap/blob/main/README.md

README

Roaring Bitmap

Roaring Bitmap data structure

Example

let mut roaring_bitmap = RoaringBitMap::new();
roaring_bitmap.add(1);
roaring_bitmap.add(1);
roaring_bitmap.add(2);
roaring_bitmap.add(3);
roaring_bitmap.add(4294967294);
roaring_bitmap.add(4294967295);
roaring_bitmap.remove(3);
println!("roaring_bitmap: {:?} ", roaring_bitmap.values());

let mut roaring_bitmap64 = RoaringBitMap64::new();
roaring_bitmap64.add(1);
roaring_bitmap64.add(1);
roaring_bitmap64.add(2);
roaring_bitmap64.add(18446744073709551614);
roaring_bitmap64.add(18446744073709551615);
roaring_bitmap64.remove(3);
println!("roaring_bitmap64: {:?} ", roaring_bitmap64.values());

Commit count: 18

cargo fmt