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