| Crates.io | num-width |
| lib.rs | num-width |
| version | 0.1.0 |
| created_at | 2023-03-19 20:58:11.276186+00 |
| updated_at | 2023-03-19 20:58:11.276186+00 |
| description | Trait to determine number width |
| homepage | |
| repository | |
| max_upload_size | |
| id | 814689 |
| size | 10,156 |
Trait to determine number width.
Example:
use num_width::NumberWidth;
assert_eq!(15u8.width(), 2);
assert_eq!((-7i8).signed_width(), 2);