blob: cf188d99cb4c6cf97eb6c830147199001e5cee9a [file] [log] [blame]
Jason Macnakefaa0952019-12-12 22:33:33 +00001//! This module shows an example of code generated by the macro. **IT MUST NOT BE USED OUTSIDE THIS
2//! CRATE**.
3
4bitflags! {
5 /// This is the same `Flags` struct defined in the [crate level example](../index.html#example).
6 /// Note that this struct is just for documentation purposes only, it must not be used outside
7 /// this crate.
8 pub struct Flags: u32 {
9 const A = 0b00000001;
10 const B = 0b00000010;
11 const C = 0b00000100;
12 const ABC = Self::A.bits | Self::B.bits | Self::C.bits;
13 }
14}