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 |
#69 in #filesize
91 downloads per month
Used in bcdl
4KB
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)));
lib.rs
:
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)));