fixedbitset icon indicating copy to clipboard operation
fixedbitset copied to clipboard

Add compatibility with bitvec's `BitSlice` trait

Open hexane360 opened this issue 5 years ago • 0 comments
trafficstars

This adds an optional (disabled by default) feature, which when enabled adds an implementation of bitvec's BitSlice trait. It aims to add some cross-compatibility to the two crates, as well as allowing a variety of methods that operate on slices of bits.

The most controversial part here is adding a Deref implementation from FixedBitSet to &BitSlice. I think this is justified though, and there is little overlap between the methods provided by the two crates.

hexane360 avatar May 29 '20 17:05 hexane360