31 releases

Uses old Rust 2015

0.11.1 Mar 19, 2020
0.11.0 Jan 16, 2019
0.10.0 Jun 20, 2018
0.4.2 Mar 31, 2018

#91 in Data structures

Download history 34172/week @ 2024-03-14 32491/week @ 2024-03-21 39798/week @ 2024-03-28 76181/week @ 2024-04-04 41816/week @ 2024-04-11 38898/week @ 2024-04-18 35873/week @ 2024-04-25 33614/week @ 2024-05-02 35155/week @ 2024-05-09 32863/week @ 2024-05-16 30692/week @ 2024-05-23 37400/week @ 2024-05-30 36544/week @ 2024-06-06 37709/week @ 2024-06-13 36352/week @ 2024-06-20 28469/week @ 2024-06-27

145,914 downloads per month
Used in 1,457 crates (52 directly)

MIT/Apache

165KB
3.5K SLoC

bv-rs: bit-vectors and bit-slices for Rust

Build Status Crates.io License: MIT License: Apache 2.0

The main type exported by the library, BitVec, is a packed, growable bit-vector. Its API mirrors that of Vec where reasonable. The library also defines slice operations that return BitSlice or BitSliceMut, akin to Rust’s array slices but for bit-vectors. A common API to bit-vectors and bit-slices is provided by the Bits, BitsMut, and BitsPush traits, which also allow treating as bit-vectors all primitive unsigned integer types (uN), and vectors and slices thereof, as well as unpacked vectors and slices of bool.

Usage

It’s on crates.io, so you can add

[dependencies]
bv = "0.11.1"

to your Cargo.toml and

extern crate bv;

to your crate root.

This crate supports Rust version 1.31 and newer.

Dependencies

~170KB