bitmaps
bitmaps copied to clipboard
Bitmap types for Rust
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...
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...