]>
git.proxmox.com Git - rustc.git/blob - src/vendor/bitflags/src/example_generated.rs
1 //! This module shows an example of code generated by the macro. **IT MUST NOT BE USED OUTSIDE THIS
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
8 pub struct Flags
: u32 {
9 const FLAG_A
= 0b00000001;
10 const FLAG_B
= 0b00000010;
11 const FLAG_C
= 0b00000100;
12 const FLAG_ABC
= Self::FLAG_A
.bits
| Self::FLAG_B
.bits
| Self::FLAG_C
.bits
;