1 2 3 4 5 6 7 8 9 10
use bitflags::bitflags; bitflags! { #[derive(Clone, Copy)] struct Flags: u32 { const A = 0b00000001; } } fn main() {}