Function cargo::util::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).