Crates.io | fmtsize |
lib.rs | fmtsize |
version | 0.1.2 |
source | src |
created_at | 2021-04-03 06:45:58.852415 |
updated_at | 2024-07-03 00:20:06.890269 |
description | Human-readable formatting for memory sizes, etc. |
homepage | |
repository | |
max_upload_size | |
id | 378034 |
size | 17,727 |
Format memory sizes.
Import the trait and call the method.
use fmtsize::{Conventional, FmtSize};
println!("{}", 492_752_310_u64.fmt_size(Conventional)); // 469.93 MB
MIT or Apache 2.0. Pick whichever you like.