modular-bitfield-msb 0.11.2

Allows to easily define bitfield types with modular building blocks. MSB-first version.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use modular_bitfield_msb::prelude::*;
#[bitfield]
struct RawIdentifiers {
    r#struct: B5,
    r#bool: B3,
}

fn main() {
    let r = RawIdentifiers::new();
    let _ = r.r#struct();
    let _ = r.r#bool();
}