uniset
A hierarchical, growable bit set with support for in-place atomic operations.
The idea is based on hibitset, but dynamically growing instead of using a fixed capacity. By being careful with the data layout, we can also support structural sharing between the local and atomic bitset variants.
Features
vec-safety
- Avoid relying on the assumption that&mut Vec<T>
can be safely coerced to&mut Vec<U>
ifT
andU
have an identical memory layouts (enabled by default, issue #1).
Examples
use BitSet;
let mut set = new;
assert!;
assert_eq!;
set.set;
set.set;
assert!;
assert!;
assert_eq!;
assert!;
assert_eq!;
assert!;