set_bits
set_bits is a Rust library for setting and clearing bits on memory.
Usage
Add set_bits to your Cargo.toml file.
[]
= "1.0.1"
use set_bits;
// Set 20 bits from the 10th bit of address 0xCAFEBABE
set;
// Clear 20 bits from the 10th bit of address 0xCAFEBABE
clear;
License
Apache-2.0 or MIT