size-display

Crates.iosize-display
lib.rssize-display
version0.1.4
sourcesrc
created_at2020-05-08 17:52:56.649172
updated_at2020-06-22 21:27:04.279576
descriptionDisplay file sizes in human-readable form
homepage
repositoryhttps://github.com/germangb/size-display.git
max_upload_size
id238969
size3,239
german gömez (germangb)

documentation

README

size-display

Crates.io

Display human readable file sizes.

Example

use size_display::Size;

assert_eq!("24", format!("{}", Size(24)));
assert_eq!("4.2G", format!("{:.1}", Size(4509715660)));
Commit count: 5

cargo fmt