1 2 3 4 5 6 7 8 9 10 11 12 13 14
use bebytes::BeBytes; #[cfg(not(feature = "std"))] extern crate alloc; #[derive(BeBytes, Debug, PartialEq)] struct IncompleteByte { #[bits(3)] first: u8, #[bits(4)] second: u8, // Total: 7 bits - not a complete byte! } fn main() {}