Crates.io | bitarray-naive |
lib.rs | bitarray-naive |
version | 0.1.2 |
source | src |
created_at | 2022-12-25 01:54:34.415528 |
updated_at | 2022-12-25 02:54:55.858472 |
description | The simple and naive rust implementation of a bitarray. |
homepage | |
repository | https://github.com/obakhmach/bitarray |
max_upload_size | |
id | 745124 |
size | 10,514 |
The simple and naive rust implementation of a bit array.
[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"
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();