contain-rs / bit-set

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

Set/unset bits iterator #37

Open pczarn opened 2 months ago

pczarn commented 2 months ago

We could use leading_zeros or trailing_zeros to iterate over the indices of set or unset bits, avoiding lots of arithmetic/shifting.

https://github.com/contain-rs/bit-vec/issues/44