Skip to main content

bytes

Function bytes 

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

Formats a byte count with a binary unit, e.g. "1.5G", "512K", "0B".

Uses at most 5 characters so that columns stay aligned.