Function nom::character::is_digit [−][src]
pub fn is_digit(chr: u8) -> boolExpand description
Tests if byte is ASCII digit: 0-9
Example
assert_eq!(is_digit(b'a'), false);
assert_eq!(is_digit(b'9'), true);pub fn is_digit(chr: u8) -> boolTests if byte is ASCII digit: 0-9
assert_eq!(is_digit(b'a'), false);
assert_eq!(is_digit(b'9'), true);