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
13
14
15
16
17
// Checks that no implicit paths are generated by the `#[bitfield]` proc. macro
// and `#[derive(BitfieldSpecifier)]` derive macro.

use ::modular_bitfield_msb::prelude::*;

#[bitfield]
pub struct PrimitivesBitfield {
    a: bool,
    b: u8,
    c: u16,
    d: u32,
    e: u64,
    f: u128,
    rest: B7,
}

fn main() {}