bitbag_derive 0.3.0

Derive macros for the bitbag crate
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
mod sys {
    pub const FLAG_A: u32 = 0b01;
    pub const FLAG_B: u32 = 0b11;
}

#[bitbag_derive::check]
#[repr(u8)]
enum BadFlags {
    A = sys::FLAG_A as _,
    B = sys::FLAG_B as _,
}

fn main() {}