bitflags 1.3.2

A macro to generate structures which behave like bitflags.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use bitflags::bitflags;

bitflags! {
    struct Flags: u32 {
        const A = 0b00000001;
    }
}

impl Flags {
    pub fn new() -> Flags {
        Flags::A
    }
}

fn main() {}