size_format 1.0.2

Allows for easier formatting of sizes.
Documentation
1
2
3
4
5
6
7
8
9
10
11
extern crate size_format;

use size_format::SizeFormatterSI;

#[test]
fn std_works() {
    assert_eq!(
        format!("{}B", SizeFormatterSI::new(8_500_000)),
        "8.5MB".to_string()
    );
}