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:
crate::fmt::HexSlicefor stable, compactDebugprinting of byte slices.crate::fmt::hexdump_to_sinkfor a classic hex dump layout (offset/hex/ascii).crate::fmt::ByteFmtfor human-friendly binary unit formatting.crate::fmt::Addrfor consistent pointer/address formatting.
Structs§
- Addr
- Formats an address as lower-hex with
0xprefix. - ByteFmt
- Formats a byte count using binary units (KiB, MiB, GiB).
- HexSlice
- Wrapper type providing a stable
Debugrepresentation for&[u8].
Functions§
- hexdump_
to_ sink - Writes a classic hex dump to a
LogSink.