bittle-0.3.0 has been yanked.
bittle
A library for working with small and cheap bit sets and masks.
The name bittle comes from bit and little.
The bit sets are entirely defined using Copy types in Rust such as u64
or [u128; 4] who's number of bits define the capacity of the set.
use mem;
use FixedSet;
let mut set = new;
assert!;
set.set;
assert!;
set.unset;
assert!;
assert_eq!;
The Mask trait can be used to abstract over the read-only side of a bit set. It has useful utilities such as iterating over masked elements through Mask::join.
use ;
let elements = vec!;
let mut m = new;
// Since set is empty, no elements are iterated over.
let mut it = m.join;
assert_eq!;
m.set;
let mut it = m.join;
assert_eq!;
assert_eq!;