Skip to main content
← PSoXide SDK guides and examples · SDK f2fec1c301f1 · All Cargo features enabled; check feature gates before use.

Module hex

Module hex 

Source
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 u16 formatted as 0xABCD, ready to draw.

Functions§

format_u16
Format a u16 as a fixed-width 0xABCD hex label.