bitsandbytes 0.3.2

An owned, bit-aware binary codec: fast bit/byte field types and the unified #[bin] macro.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! A `#[flag(N)]` whose bit is out of range for the backing integer is a clear error, not
//! a const shift-overflow deep in generated code.
use bnb::bitflags;

#[bitflags(u8)]
struct Flags {
    a: bool,
    #[flag(200)]
    too_high: bool,
}

fn main() {}