Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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)]
27
struct MyInt(u8);
28
29
impl Bits for MyInt {
30
const EMPTY: Self = MyInt(u8::MIN);
Callers
6
bitflags_custom_bits.rs
File · 0.85
bitand
Method · 0.85
bitor
Method · 0.85
bitxor
Method · 0.85
not
Method · 0.85
parse_hex
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected