Crates.io | const_sized_bit_set |
lib.rs | const_sized_bit_set |
version | |
source | src |
created_at | 2024-03-19 17:22:19.01575 |
updated_at | 2024-12-04 12:18:48.018309 |
description | A bitset with a const generic size parameter indicating the number of 64 bit words to use |
homepage | |
repository | https://github.com/wainwrightmark/const_sized_bit_set |
max_upload_size | |
id | 1179499 |
Cargo.toml error: | TOML parse error at line 19, column 1 | 19 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
A bitset with a const generic size parameter indicating the number of 64 bit words to use. Can be used in no-std as it does not allocate.
use const_sized_bit_set::*;
// This set has 2 64-bit words so this set can contain values in 0..=127
let mut set = BitSetArray::<2>::from_iter([0,1, 99].into_iter());
set.remove(1);
set.insert(100);
assert_eq!(set.to_string(), "[0, 99, 100]");