set_bits is a Rust library for setting and clearing bits on memory.
Use cargo
to install set_bits:
bash
cargo install set_bits
```rust use set_bits;
// Set 20 bits from the 10th bit of address 0xCAFEBABE set_bits::set(0xCAFEBABE, 10, 20);
// Clear 20 bits from the 10th bit of address 0xCAFEBABE set_bits::clear(0xCAFEBABE, 10, 20); ```
Apache-2.0 or MIT