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).