Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
120
impl 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
126
impl WriteHex for MyInt {
Callers
nothing calls this directly
Calls
2
Ok
Class · 0.85
MyInt
Class · 0.85
Tested by
no test coverage detected