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

Interface WriteHex

src/parser.rs:227–230  ·  view source on GitHub ↗

Encode a value as a hex string. Implementors of this trait should not write the `0x` prefix. */

Source from the content-addressed store, hash-verified

225Implementors of this trait should not write the `0x` prefix.
226*/
227pub trait WriteHex {
228 /// Write the value as hex.
229 fn write_hex<W: fmt::Write>(&self, writer: W) -> fmt::Result;
230}
231
232/**
233Parse a value from a hex string.

Callers

nothing calls this directly

Implementers 1

bitflags_custom_bits.rstests/compile-fail/bitflags_custom_bit

Calls

no outgoing calls

Tested by

no test coverage detected