#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

#34 in #bit-manipulation

Download history 6/week @ 2023-12-17 24/week @ 2024-02-18 14/week @ 2024-02-25 8/week @ 2024-03-03 8/week @ 2024-03-10

54 downloads per month
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