Crates.io | bitx |
lib.rs | bitx |
version | 0.1.1 |
source | src |
created_at | 2024-09-29 05:36:14.751008 |
updated_at | 2024-09-29 06:17:50.724765 |
description | a lightweight bit-level crate |
homepage | |
repository | https://github.com/cradiy/bitx.git |
max_upload_size | |
id | 1390614 |
size | 15,340 |
bitx
is a lightweight and efficient Rust crate designed for handling and manipulating bit-level data.
It provides an intuitive API that allows direct access and modification of individual bits using bit indexing.
Bit-level indexing: Access and modify individual bits with ease.
Efficient storage: Compact storage for large amounts of bit data.
use bitx::Bitx;
fn main() {
let mut byte: Bitx<8> = 0b111u8.into();
byte[1] = false;
assert_eq!(byte.value(), 0b101)
}
This project is licensed under the MIT License.