Crates.io | roaring_bitmap |
lib.rs | roaring_bitmap |
version | 0.1.3 |
source | src |
created_at | 2022-11-13 13:41:38.33796 |
updated_at | 2022-11-14 02:20:35.595236 |
description | Roaring bitmap data structure implemented in Rust |
homepage | https://github.com/arcticherman/roaring_bitmap |
repository | https://github.com/arcticherman/roaring_bitmap |
max_upload_size | |
id | 714207 |
size | 22,734 |
Roaring Bitmap data structure
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());