contain-rs / bit-set

A Set of Bits

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Set/unset bits iterator

pczarn opened this issue · comments

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

contain-rs/bit-vec#44