Skip to main content

format_bytes_compact

Function format_bytes_compact 

Source
pub fn format_bytes_compact(bytes: u64, units: ByteUnits) -> String
Expand description

Renders a byte count in the most compact stable form, such as 2.6G.

Used by narrow process-table columns where 2.6 GiB does not fit.