| Crates.io | size_fmt |
| lib.rs | size_fmt |
| version | 0.1.1 |
| created_at | 2024-06-23 14:24:51.444585+00 |
| updated_at | 2024-07-07 13:45:19.217204+00 |
| description | This library formats sizes in a human readable format |
| homepage | https://github.com/bydlw98/size_fmt |
| repository | https://github.com/bydlw98/size_fmt |
| max_upload_size | |
| id | 1281234 |
| size | 41,289 |
This library formats sizes in a human readable format.
The API and Implementation is inspired by dtolnay/itoa.
core::fmt::Formatter.fn main() {
let mut buffer = size_fmt::Buffer::new();
let printed = buffer.human_fmt(4096);
assert_eq!(printed, "4.0K")
}