bitarray-naive 0.1.2

The simple and naive rust implementation of a bitarray.
Documentation
  • Coverage
  • 54.55%
    6 out of 11 items documented1 out of 6 items with examples
  • Size
  • Source code size: 11.62 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.78 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • obakhmach/bitarray
    2 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • alexanderbakhmach

bitarray

The simple and naive rust implementation of a bit array.

Install

[dependencies]
...
bitarray-naive = { git = "https://github.com/obakhmach/bitarray", branch = "<desired-branch>", version = "<desired-version>"}

For example for dev branch with version 0.1.0 the dependecy will look the following.

[dependencies]
...
bitarray-naive = { git = "https://github.com/obakhmach/bitarray", branch = "dev", version = "0.1.0"}

Or as a registered create

[dependencies]
...
bitarray-naive = "0.1.0"

Usage

use bitarray_naive::BitArray;

let bitarray_size: i64 = 9999;

let mut bitarray: BitArray = BitArray::new(bitarray_size);

bitarray.set(12, true).unwrap();

let bitarray_value: bool = bitarray.get(12).unwrap();