Skip to main content

format_bytes

Function format_bytes 

Source
pub fn format_bytes(bytes: u64) -> String
Expand description

Format bytes into human-readable string (e.g., “1.20 GiB”, “450 MiB”). Binary units, because that is what humansize::BINARY produces — every doc example quoting sizes should say MiB/GiB, not MB/GB.