☰
Debian Codegraph
@
0.12.0-1
0.10.0-1
/
/
debian
/
rust-vendor
/
bitflags-1.3.2
/
tests
/
compile-pass
/
impls
/
inherent_methods.rs
☽
☼
debian/rust-vendor/bitflags-1.3.2/tests/compile-pass/impls/inherent_methods.rs
code
plain
raw
MIT
or
Apache-2.0
the respective crate authors
debian/copyright
1
use bitflags::bitflags;
2
3
bitflags! {
4
struct Flags: u32 {
5
const A = 0b00000001;
6
}
7
}
8
9
impl Flags {
10
pub fn new() -> Flags {
11
Flags::A
12
}
13
}
14
15
fn main() {}