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

Method parse_hex

tests/compile-fail/bitflags_custom_bits.rs:121–123  ·  view source on GitHub ↗
(input: &str)

Source from the content-addressed store, hash-verified

119
120impl ParseHex for MyInt {
121 fn parse_hex(input: &str) -> Result<Self, ParseError> {
122 Ok(MyInt(u8::from_str_radix(input, 16).map_err(|_| ParseError::invalid_hex_flag(input))?))
123 }
124}
125
126impl WriteHex for MyInt {

Callers

nothing calls this directly

Calls 2

OkClass · 0.85
MyIntClass · 0.85

Tested by

no test coverage detected