bitarr

Crates.iobitarr
lib.rsbitarr
version0.2.0
sourcesrc
created_at2023-01-29 17:38:47.202841
updated_at2023-02-04 22:43:10.296657
descriptionA fast and efficient Rust implementation of a BitSet, supporting multiple backing stores
homepage
repositoryhttps://github.com/YoloDev/bitarr
max_upload_size
id771123
size46,662
Aleksander Heintz (Alxandr)

documentation

README

BitArr

Crates.io docs.rs

A fast and efficient Rust implementation of a BitSet, supporting multiple backing stores.

Usage

To use BitArr in your project, add the following to your Cargo.toml:

[dependencies]
bitarr = "0"

Example

use bitarr::BitSet;

let mut bs = BitSet::from(0u16);
bs.set(3);
bs.set(7);

assert_eq!(bs.get(3), Some(true));
assert_eq!(bs.get(7), Some(true));
assert_eq!(bs.get(2), Some(false));

Documentation

API documentation can be found on docs.rs.

License

BitArr is distributed under the terms of the MIT license.

See LICENSE for details.

Commit count: 12

cargo fmt