size_fmt

Crates.iosize_fmt
lib.rssize_fmt
version0.1.1
sourcesrc
created_at2024-06-23 14:24:51.444585
updated_at2024-07-07 13:45:19.217204
descriptionThis library formats sizes in a human readable format
homepagehttps://github.com/bydlw98/size_fmt
repositoryhttps://github.com/bydlw98/size_fmt
max_upload_size
id1281234
size41,289
(bydlw98)

documentation

README

size_fmt

CICD Crates.io Docs.rs License

This library formats sizes in a human readable format.


The API and Implementation is inspired by dtolnay/itoa.


Features

Example

fn main() {
    let mut buffer = size_fmt::Buffer::new();
    let printed = buffer.human_fmt(4096);

    assert_eq!(printed, "4.0K")
}
Commit count: 12

cargo fmt