5 releases
| 0.1.4 | Jun 22, 2020 |
|---|---|
| 0.1.3 | May 8, 2020 |
| 0.1.2 | May 8, 2020 |
| 0.1.1 | May 8, 2020 |
| 0.1.0 | May 8, 2020 |
#566 in Value formatting
198 downloads per month
Used in 3 crates
4KB
Display human readable file sizes.
Limitation
Displayed units go up to Exabyte (2^60).
Example
use size_display::Size;
assert_eq!("24", format!("{}", Size(24)));
assert_eq!("4.2G", format!("{:.1}", Size(4509715660)));
size-display
Display human readable file sizes.
Example
use size_display::Size;
assert_eq!("24", format!("{}", Size(24)));
assert_eq!("4.2G", format!("{:.1}", Size(4509715660)));