bitmaps icon indicating copy to clipboard operation
bitmaps copied to clipboard

Bitmap types for Rust

Results 13 bitmaps issues
Sort by recently updated
recently updated
newest added

as long as the `SIZE` bit is set (which is out of bound), it will appears in iter result. related to: #22 #18 ```rust #[test] fn test_invert_iter() { let bitmap...

Updates the requirements on [proptest-derive](https://github.com/proptest-rs/proptest) to permit the latest version. Changelog Sourced from proptest-derive's changelog. 0.4.0 Potential Breaking Changes proptest::char::ANY replaced with proptest::char::any(). proptest::char::ANY is present but deprecated, and will...

dependencies

I want build a bitmap from a array of u8. Like this: ``` let data = [u8; 1024]; //read data from file let bmap = BitMpa::from(data) ```

The following test failes for the last assert. The iterator yields 0,1,2,3 which is out of range. ```rust #[test] fn iterate_in_range() { let mut m = bitmaps::Bitmap::::new(); m.invert(); let mut...

Setting bits with for loop one by one is not performant. Creating mask for bit_and/bit_or to achieve the same goal is not trivial task especially for "big" bitmasks. To make...

Apply some suggestions from `clippy::manual_filter`.

When using `.invert()` on a `Bitmap` and then iterating over the indices, `SIZE` appears as an index. Minimal working example: ``` use bitmaps::{ Bitmap, }; fn main() { let mut...

This is because boolean values don't support all bit patterns. > An object with the boolean type has a [size and alignment](https://doc.rust-lang.org/reference/type-layout.html#size-and-alignment) of 1 each. The value false has the...

Thanks for the crate, I found out that really counter intuitive behavior: ``` use bitmaps::Bitmap; #[cfg(test)] mod tests { #[test] fn bitmap_len() { let mut a = Bitmap::::new(); assert_eq!(a.len(), 0);...

This allows creating bitmaps in const functions