Skip to main content

byte_size

Function byte_size 

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

Format a byte size using IEC units with two decimal places.

Examples: 512.00 B, 720.79 KiB, 13.61 MiB.