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?
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>
andInto<BitIdx>
.BitIdx
is a simple wrapper forusize
.This module implements
usize
for these traits, sobitidx::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?