[−][src]Function dumplingh::util::width_for
pub fn width_for(len: usize) -> usize
Get how many characters wide the string representation of a number is.
In other words, the max padding for filenames to make sense.
Examples
assert_eq!(width_for(7), 1); assert_eq!(width_for(10), 2); assert_eq!(width_for(579), 3);