Skip to main content

human_readable_bytes

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 (binary units).

Returns a tuple of (quantity, units).