fmtsize 0.1.2

Human-readable formatting for memory sizes, etc.
Documentation
  • Coverage
  • 100%
    9 out of 9 items documented1 out of 9 items with examples
  • Size
  • Source code size: 17.34 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.98 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • archer884

fmtsize

Format memory sizes.

Usage

Import the trait and call the method.

use fmtsize::{Conventional, FmtSize};

println!("{}", 492_752_310_u64.fmt_size(Conventional)); // 469.93 MB

License

MIT or Apache 2.0. Pick whichever you like.