interplane.Get Omega
Read in your language

aienux

Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.

Brought by drakestapleton

branch main Branches Tags History

aienux / vendor / bit_field

1096131 feat(artifact): add Ed25519 trust and host tooling Drake committed 2026-09-25
..
benches/
src/
.cargo-checksum.json1309
.cargo_vcs_info.json94
.travis.yml248
Cargo.lock154
Cargo.toml1343
Cargo.toml.orig637
Changelog.md1729
LICENSE-APACHE11357
LICENSE-MIT1084
README.md642
SECURITY.md585

README.md

bit_field

A simple crate which provides the BitField trait, which provides methods for operating on individual bits and ranges of bits on Rust's integral types.

Documentation

Documentation is available on docs.rs

Usage

[dependencies]
bit_field = "0.10.1"

Example

extern crate bit_field;
use bit_field::BitField;

let mut x: u8 = 0;

x.set_bit(7, true);
assert_eq!(x, 0b1000_0000);

x.set_bits(0..4, 0b1001);
assert_eq!(x, 0b1000_1001);

License

This crate is dual-licensed under MIT or the Apache License (Version 2.0). See LICENSE-APACHE and LICENSE-MIT for details.