modular-bitfield 0.7.0

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

#[bitfield]
pub struct MyFourBytes {
    a: B1,
    b: B3,
    c: B4,
    d: B24,
}

fn main() {}