Skip to main content

human_bytes

Function human_bytes 

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

Render a byte count at human scale, the way every fdu report does.

Public because a caller formatting fdu’s numbers should not reimplement its unit rules: two spellings of one quantity inside a single tool is how a report and the line summarising it come to disagree.