bitops
Miscellaneous bit operations for any Integer. See documentation here.
Getting started
Add to your project with
or directly editing your Cargo.toml
[]
= "0.1.0"
Example usage
use BitOps;
let x = 0b1010_1011_0000_1100; // 0xab0c
let flag = 0b1000;
assert!;
assert!;
assert!;
assert_eq!;
License
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.