Skip to main content

format_byte_count

Function format_byte_count 

Source
pub fn format_byte_count(n: u64) -> String
Expand description

Canonical display for a byte count: largest exact unit (500B, 10KB, 2MB, 1GB, binary 10KIB and friends), falling back to bytes. Round-trips through parse_byte_count.