Expand description
Heap-free hex label formatting for debug HUDs.
no_std guest code cannot reach for format!, so HUD overlays
that want to print a counter next to a label need a tiny
stack-buffer formatter. format_u16 renders a u16 as 0xABCD
into a HexU16 whose as_str feeds straight
into FontAtlas::draw_text.
Structs§
- HexU16
- A
u16formatted as0xABCD, ready to draw.
Functions§
- format_
u16 - Format a
u16as a fixed-width0xABCDhex label.