• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //! This module shows an example of code generated by the macro. **IT MUST NOT BE USED OUTSIDE THIS
2 //! CRATE**.
3 
4 bitflags! {
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 }
15