Mrmaxmeier / bv-rs

Bit-vectors and bit-slices for Rust

Home Page:https://tov.github.io/bv-rs/bv/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.0"

to your Cargo.toml and

extern crate bv;

to your crate root.

This crate supports Rust version 1.24 and newer.

About

Bit-vectors and bit-slices for Rust

https://tov.github.io/bv-rs/bv/

License:Apache License 2.0


Languages

Language:Rust 100.0%