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() {}