pub fn is_digit(s: &str) -> bool
Python’s str.isdigit() for the ASCII strings we deal with.
str.isdigit()