This library formats sizes in a human readable format.
The API and Implementation is inspired by dtolnay/itoa.
- Supports no-std.
- No heap allocations.
- Does not go through
core::fmt::Formatter.
fn main() {
let mut buffer = size_fmt::Buffer::new();
let printed = buffer.human_fmt(4096);
assert_eq!(printed, "4.0K")
}