cargo::util

Function human_readable_bytes

Source
pub fn human_readable_bytes(bytes: u64) -> (f32, &'static str)
Expand description

Formats a number of bytes into a human readable SI-prefixed size. Returns a tuple of (quantity, units).