Function is_numeric

Source
pub fn is_numeric(b: u8) -> bool
Expand description

returns true if b is a digit (i.e, 0..=9)

for b in 0..=255 {
    match b {
        b'0'..=b'9' => assert!(is_numeric(b), "{}", b as char),
        b => assert!(!is_numeric(b)),
    }
}