const_sized_bit_set

Crates.ioconst_sized_bit_set
lib.rsconst_sized_bit_set
version
sourcesrc
created_at2024-03-19 17:22:19.01575
updated_at2024-12-04 12:18:48.018309
descriptionA bitset with a const generic size parameter indicating the number of 64 bit words to use
homepage
repositoryhttps://github.com/wainwrightmark/const_sized_bit_set
max_upload_size
id1179499
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`
size0
Mark Wainwright (wainwrightmark)

documentation

https://docs.rs/const_sized_bit_set

README

Const Sized Bit Set

GITHUB

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.

Getting started

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]");

Commit count: 40

cargo fmt