contain-rs / bit-set

A Set of Bits
Apache License 2.0
63 stars 25 forks source link

Add bitidx module to allow bit sets of arbitrary type. #10

Closed jsgf closed 7 years ago

jsgf commented 8 years ago

This is an RFC PR to allow bit-set to be used as a set of arbitrary types, so long as they implement From<BitIdx> and Into<BitIdx>. BitIdx is a simple wrapper for usize.

This module implements usize for these traits, so bitidx::BitSet is identical to ::BitSet; the only problem is that the more general signatures causes existing users of bit-set to get inference errors.

Is this a useful addition to bit-set? Should I just make it a separate crate?

Gankra commented 7 years ago

Sorry, we're too strapped for maintainers to review/support this. Closing.