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.

Examples: “0 B”, “512 B”, “1.2 KB”, “3.4 MB”, “5.6 GB”