#bits #matrix #bit-manipulation #container

bitmatrix

A bitvec based bitmatrix, akin to bit-matrix which is based on bit-vec

1 unstable release

0.1.0 Oct 8, 2020

#9 in #bitwise


Used in 2 crates

MIT license

8KB
117 lines

bitmatrix

A bitvec based bitmatrix, akin to bit-matrix which is based on bit-vec.

Cargo Documentation

Features

  • Serde support.
  • Simple design, few dependencies, very fast to compile.
  • No unsafe code.

Licence

bitmatrix is licenced under the MIT Licence.


lib.rs:

This crate provides a bitmatrix based on bitvec, akin to bit-matrix which is based on bit-vec.

Access can be done through the Index<usize>, Index<(usize, usize)> and IndexMut<usize> traits. As the IndexMut trait is incompatible with proxies, a set method is provided. Row and cell iterators are also provided.

If the serde_support feature is enabled, this type implements serde's Serialize and Deserialize traits.

Dependencies

~1MB
~27K SLoC