commit | 04d3c0de766019c5330dc8f99bced4dc321d7cf7 | [log] [tgz] |
---|---|---|
author | Inseob Kim <[email protected]> | Thu Oct 10 17:15:28 2024 +0900 |
committer | Inseob Kim <[email protected]> | Thu Oct 24 11:05:40 2024 +0900 |
tree | 164798301c65655cec2fe17d282c901e7395c136 | |
parent | 6b017bd53be0737d095bd36c2a365193ecd9c71f [diff] |
Use cargo_embargo to update Android.bp and rules.mk Bug: 358302178 Test: ran cargo_embargo Change-Id: If51a65b303c520d31116c721351ab98d1d8d2544
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.