num-width 0.1.0

Trait to determine number width
Documentation
  • Coverage
  • 100%
    7 out of 7 items documented3 out of 6 items with examples
  • Size
  • Source code size: 10.76 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.28 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • xfbs

num-width

Trait to determine number width.

Example:

use num_width::NumberWidth;

assert_eq!(15u8.width(), 2);
assert_eq!((-7i8).signed_width(), 2);