MCPcopy 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
126impl 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
132bitflags! {

Callers 1

to_writerFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected