Skip to main content

format_size

Function format_size 

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

Format a byte count as a short human-readable string. Integer-only math (no f64) to avoid clippy precision-loss lint.