human-readable
Synopsis
A simple library to translate a size in bytes to a either a prefixed size of
either the decimal (e.g. KB) or binary (e.g. KiB) varieties.
Usage
Add this dependency to your project's Cargo.toml:
[]
= "0.2.0"
We can now get a human-readable representation of the size e.g.
use binary;
let hsize = binary?;
assert_eq!;