Skip to content

YoloDev/bitarr

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages