var-bitmap 0.1.0

A simple variable-sized bitmap
Documentation
  • Coverage
  • 75%
    6 out of 8 items documented0 out of 7 items with examples
  • Size
  • Source code size: 5.42 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.25 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • aprimadi/var-bitmap
    3 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • aprimadi

Var Bitmap

A simple variable-sized bitmap.

Motivation

Most of the bitmap implementation I found on crates.io are either fixed-size or compressed which isn't what I needed for my project. I want a growable bitmap that is expected to remain small. A compressed bitmap adds a lot of additional data structures on top of the bitmap itself which works great for large bitmap but adds a lot of unnecessary complexity for bitmap that is expected to remain small.

Usage

use var_bitmap::Bitmap;

let bm = Bitmap::new();
bm.push(false);
bm.push(true);
bm.push(false);
bm.get(2); // Should be false
bm.set(2, true);
bm.get(2); // Should be true