set_bits

Crates.ioset_bits
lib.rsset_bits
version1.2.0
sourcesrc
created_at2020-04-17 08:47:25.313975
updated_at2024-03-03 04:17:09.710788
descriptionSet and clear bits from specified address.
homepage
repositoryhttps://github.com/toku-sa-n/set_bits
max_upload_size
id231075
size15,585
Hiroki Tokunaga (toku-sa-n)

documentation

https://docs.rs/set_bits

README

set_bits

NOTE: This library is no longer maintained. Consider using the following crates:

set_bits is a Rust library for setting and clearing bits on memory.

Usage

Add set_bits to your Cargo.toml file.

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);

License

Apache-2.0 or MIT

Commit count: 262

cargo fmt