Crates.io | nostd-bv |
lib.rs | nostd-bv |
version | 0.11.2 |
source | src |
created_at | 2024-12-31 11:29:49.797941+00 |
updated_at | 2024-12-31 11:29:49.797941+00 |
description | Bit-vectors and bit-slices |
homepage | |
repository | https://github.com/nostd-rs/bv.git |
max_upload_size | |
id | 1499922 |
size | 213,740 |
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
.
It’s on crates.io, so you can add
[dependencies]
nostd-bv = "0.11"
to your Cargo.toml
.
Licensed under either of:
at your option.