bitvec icon indicating copy to clipboard operation
bitvec copied to clipboard

A crate for managing memory bit by bit

Results 100 bitvec issues
Sort by recently updated
recently updated
newest added
trafficstars

On the [`BitArray` doc page](https://docs.rs/bitvec/latest/bitvec/array/struct.BitArray.html), the link on [`bitarr!`](https://docs.rs/bitvec/latest/bitvec/macro.BitArr.html) actually points to the `BitArr!` macro instead of the `bitarr!` macro. Looking at the Markdown for the docs, the link seems...

Unlike [it's native rust equivalent](https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=c8057f71a7800b36c0b0abde241e38b9), this crates' [`BitSlice::copy_within`](https://docs.rs/bitvec/latest/bitvec/slice/struct.BitSlice.html#method.copy_within) currently panics if called on an empty range, with an empty range, and index 0. For my reading, this violates it's specification...

Implements #171. I was also interested in this, so, I decided to take the time to actually create a reasonable wrapper that fits well into the library. It borrows its...

It looks like every other `nth()` function has the same logic for the if-statement.

When iterating over a `BitSlice` using `chunks_exact_mut()` and `step_by()` with a `step` value greater than 1 and the last chunk lands perfectly at the end of the `BitSlice`, the last...

I sometimes get panics like this: ``` thread 'tests::test_verify_fn' panicked at 'range ..22 out of bounds: 10', .../.cargo/registry/src/index.crates.io-6f17d22bba15001f/bitvec-1.0.1/src/slice/api.rs:2702:1 ``` It is not very helpful error because it doesn't show where...

Adds the `#[track_caller]` attribute to all functions with `## Panics` section in their documentation. I'd assume there's a number of other places to add this, but it should add a...

I have a simple example that has two implementations of the same operation: ```rust pub fn last_five_bits_zero(bytes: &[u8; 32]) -> bool { let bits = bytes.view_bits::(); bits.ends_with(bits![u8, Msb0; 0, 0,...