Skip to main content

format_bytes

Function format_bytes 

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

Format a byte count as a human-readable string with one decimal place. Examples: "0 B", "512 B", "1.0 KB", "3.5 MB", "1.2 GB".