1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
use mvbitfield::prelude::*; bitfield! { #[msb_first] struct MyStructA: 32 { x: 16, y: _, z: 16, } #[msb_first] struct MyStructB: 32 { x: 16, .., z: 16, } } fn main() {}