MCPcopy Create free account
hub / github.com/bitflags/bitflags / MyInt

Class MyInt

tests/compile-fail/bitflags_custom_bits.rs:27–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25// With some design work it could be made possible
26#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
27struct MyInt(u8);
28
29impl Bits for MyInt {
30 const EMPTY: Self = MyInt(u8::MIN);

Callers 6

bitandMethod · 0.85
bitorMethod · 0.85
bitxorMethod · 0.85
notMethod · 0.85
parse_hexMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected