2 Checks for `.to_digit(..).is_some()` on `char`s.
5 This is a convoluted way of checking if a `char` is a digit. It's
6 more straight forward to use the dedicated `is_digit` method.
10 let is_digit = c.to_digit(radix).is_some();
14 let is_digit = c.is_digit(radix);