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

#232 in Data structures

Download history 6893/week @ 2021-09-29 6980/week @ 2021-10-06 6608/week @ 2021-10-13 6423/week @ 2021-10-20 6455/week @ 2021-10-27 5535/week @ 2021-11-03 6257/week @ 2021-11-10 7098/week @ 2021-11-17 6411/week @ 2021-11-24 8619/week @ 2021-12-01 10175/week @ 2021-12-08 9795/week @ 2021-12-15 6382/week @ 2021-12-22 6449/week @ 2021-12-29 8366/week @ 2022-01-05 8138/week @ 2022-01-12

30,912 downloads per month
Used in 387 crates (21 directly)

MIT/Apache

160KB
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

~175KB

r^