☰
Debian Codegraph
@
0.12.0-1
0.10.0-1
/
/
debian
/
rust-vendor
/
bitflags-1.3.2
/
tests
/
compile-pass
/
visibility
/
bits_field.rs
☽
☼
debian/rust-vendor/bitflags-1.3.2/tests/compile-pass/visibility/bits_field.rs
code
plain
raw
MIT
or
Apache-2.0
the respective crate authors
debian/copyright
1
use bitflags::bitflags;
2
3
bitflags! {
4
pub struct Flags1: u32 {
5
const FLAG_A = 0b00000001;
6
}
7
}
8
9
fn main() {
10
assert_eq!(0b00000001, Flags1::FLAG_A.bits);
11
}