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

#456 in Data structures

Download history 529742/week @ 2024-10-16 82791/week @ 2024-10-23 48897/week @ 2024-10-30 43140/week @ 2024-11-06 45114/week @ 2024-11-13 47034/week @ 2024-11-20 43738/week @ 2024-11-27 58077/week @ 2024-12-04 48091/week @ 2024-12-11 40747/week @ 2024-12-18 26783/week @ 2024-12-25 42217/week @ 2025-01-01 59982/week @ 2025-01-08 61336/week @ 2025-01-15 60135/week @ 2025-01-22 52043/week @ 2025-01-29

243,700 downloads per month
Used in 1,824 crates (57 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

~160KB