fmtsize

Crates.iofmtsize
lib.rsfmtsize
version0.1.2
sourcesrc
created_at2021-04-03 06:45:58.852415
updated_at2024-07-03 00:20:06.890269
descriptionHuman-readable formatting for memory sizes, etc.
homepage
repository
max_upload_size
id378034
size17,727
J/A (archer884)

documentation

README

fmtsize

Format memory sizes.

Usage

Import the trait and call the method.

use fmtsize::{Conventional, FmtSize};

println!("{}", 492_752_310_u64.fmt_size(Conventional)); // 469.93 MB

License

MIT or Apache 2.0. Pick whichever you like.

Commit count: 0

cargo fmt