bitarray-naive

Crates.iobitarray-naive
lib.rsbitarray-naive
version0.1.2
sourcesrc
created_at2022-12-25 01:54:34.415528
updated_at2022-12-25 02:54:55.858472
descriptionThe simple and naive rust implementation of a bitarray.
homepage
repositoryhttps://github.com/obakhmach/bitarray
max_upload_size
id745124
size10,514
Olexander Bakhmach (alexanderbakhmach)

documentation

README

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();
Commit count: 26

cargo fmt