Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bitflags/bitflags
/ write_hex
Method
write_hex
tests/compile-fail/bitflags_custom_bits.rs:127–129 ·
view source on GitHub ↗
(&self, mut writer: W)
Source
from the content-addressed store, hash-verified
125
126
impl WriteHex for MyInt {
127
fn write_hex<W: fmt::Write>(&self, mut writer: W) -> fmt::Result {
128
write!(writer,
"{:x}"
, self.0)
129
}
130
}
131
132
bitflags! {
Callers
1
to_writer
Function · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected