Skip to main content

human_bytes

Function human_bytes 

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

Format a byte count as a human-readable string (B / KB / MB / GB / TB).

Uses binary (1024-based) divisors. Values below 1 KB are rendered as "N B".