bittle

A library for working with small and cheap bit sets and masks

Masks keep track of usize indexes which are set through [testing][Mask::test]. This allows for masking indexes in certain operations. Like if you want to mask which channels in an audio buffer is in use or not.

Examples

```rust fn test(mask: M) where M: bittle::Mask { assert!(!mask.test(0)); assert!(mask.test(1)); }

let mut set = bittle::BitSet::::empty(); set.set(1);

test(&set);

set.clear(1);

asserteq!(std::mem::sizeofval(&set), std::mem::sizeof::()); ```

License: MIT/Apache-2.0