#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

#6 in #bit-vec

Download history 2/week @ 2024-07-19 3/week @ 2024-07-26 9/week @ 2024-09-20 2/week @ 2024-09-27

87 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

~165KB