Skip to main content

Module format

Module format 

Source
Expand description

Small formatting helpers shared across logs and UI responses.

Functions§

byte_size
Format a byte size using IEC units with two decimal places.
truncate
Truncate a string to at most max_chars Unicode scalar values.