DarkOtter / indexed-bitvec-rs

A rust library providing an indexed bitvector with (hopefully) fast rank and select operations.
Apache License 2.0
3 stars 0 forks source link

Implement Ord & Eq for Bits<> #19

Closed DarkOtter closed 5 years ago

DarkOtter commented 5 years ago

The equality and ordering are written to mirror the lexicographic comparison on the vectors of bools the bits logically represent. This also adds a test which directly checks this (in a quickcheck property).