#bit-vector #bit #bitvec #vector

bitvec-rs

Bit vector with guaranteed [u8] representation and the ability to get safe immutable and mutable views into its internal vector for easy I/O

8 releases

0.2.1 May 13, 2023
0.2.0 Apr 28, 2019
0.1.5 Apr 28, 2019
0.1.1 Mar 31, 2019
0.1.0 Oct 23, 2016

#7 in #bit-vec

38 downloads per month

MIT/Apache

34KB
754 lines

bitvec-rs

This is a bit vector implementation with guaranteed [u8] LSB 0 representation and the ability to get safe immutable and mutable views into its internal vector for easy I/O.

It mirrors the API of std::vec::Vec as much as possible. Notable differences:

  • BitVec's non-consuming iterator enumerates bools instead of &bools.

License

Copyright 2019, Ashish Myles (maintainer) and contributors. This software is dual-licensed under the MIT and Apache 2.0 licenses.


lib.rs:

This is a bit vector implementation with guaranteed [u8] LSB 0 representation and the ability to get safe immutable and mutable views into its internal vector for easy I/O.

It mirrors the API of std::vec::Vec as much as possible. Notable differences:

  • BitVec's non-consuming iterator enumerates bools instead of &bools.

Dependencies

~180KB