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

Use const fn for size functions #1

Open DarkOtter opened 6 years ago

DarkOtter commented 6 years ago

Various functions for calculating size etc. can be used at compile time, and should probably be made const fn once support is added to the stable compiler (see rust-lang/rust#24111). There's no benefit to doing this before it hits the stable compiler really - there should be no significant/useful performance impact.