commit | 86f432e8d8775c426a374ae5a28d7402e1e1f9cf | [log] [tgz] |
---|---|---|
author | Arve Hjønnevåg <[email protected]> | Wed Mar 27 15:47:56 2024 -0700 |
committer | Arve Hjønnevåg <[email protected]> | Wed Mar 27 15:47:56 2024 -0700 |
tree | c4e9f1fc0adc0b7045b62ff9489a7b6b76e22952 | |
parent | 3afddda14faa778851cc456df1f3b0505e519d0f [diff] |
Generate rules.mk for bit_field crate Generated by `cargo2rulesmk.py --run`. Change-Id: Ic35ce1f1843feba6261021a2c04a49a389fdfa85
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 is available on docs.rs
[dependencies] bit_field = "0.10.1"
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);
This crate is dual-licensed under MIT or the Apache License (Version 2.0). See LICENSE-APACHE and LICENSE-MIT for details.