modular-bitfield 0.8.0

Bitfields for structs that allow for modular use of enums.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use modular_bitfield::prelude::*;

#[bitfield]
pub struct Generated {
    pub a: B9,
    pub b: B6,
    pub c: B13,
    pub d: B1,
    pub e: B3,
    pub f: B32,
}

fn main() {}