nom::character

Function is_digit

Source
pub fn is_digit(chr: u8) -> bool
Expand description

Tests if byte is ASCII digit: 0-9

ยงExample

assert_eq!(is_digit(b'a'), false);
assert_eq!(is_digit(b'9'), true);