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

#104 in Data structures

Download history 30651/week @ 2023-12-15 19027/week @ 2023-12-22 23732/week @ 2023-12-29 36684/week @ 2024-01-05 28889/week @ 2024-01-12 36323/week @ 2024-01-19 29885/week @ 2024-01-26 31742/week @ 2024-02-02 24930/week @ 2024-02-09 27557/week @ 2024-02-16 34650/week @ 2024-02-23 30453/week @ 2024-03-01 34322/week @ 2024-03-08 34969/week @ 2024-03-15 31295/week @ 2024-03-22 34264/week @ 2024-03-29

140,500 downloads per month
Used in 1,362 crates (50 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

~185KB