Skip to main content

Module fmt

Module fmt 

Source
Expand description

Deterministic formatting helpers such as hexdumps and byte-size formatters. Formatting helpers for diagnostics in no_std environments.

The goal of this module is to provide deterministic, allocation-free formatting helpers that are frequently useful during OS development:

Structs§

Addr
Formats an address as lower-hex with 0x prefix.
ByteFmt
Formats a byte count using binary units (KiB, MiB, GiB).
HexSlice
Wrapper type providing a stable Debug representation for &[u8].

Functions§

hexdump_to_sink
Writes a classic hex dump to a LogSink.