biterate

Crates.iobiterate
lib.rsbiterate
version1.0.0
sourcesrc
created_at2022-03-15 05:02:49.601198
updated_at2022-03-15 05:02:49.601198
descriptionA Rust API for Gurobi optimizer
homepagehttps://github.com/ykrist/biterate.git
repositoryhttps://github.com/ykrist/biterate.git
max_upload_size
id550333
size15,852
(ykrist)

documentation

README

biterate

A simple crate for iterating over the bits in bytes.

The crate provides 2 functionalities, exposed as traits:

  • Iterating over the 1-bits in unsigned integer types and sequences thereof
  • The reverse: Constructing integers from indices of the 1-bits

It seems stupid to publish something so simple as a crate, but I've ended up writing this code so many times (and getting it wrong) I figured I should put it a crate with actual tests.

Commit count: 2

cargo fmt