pub fn ctype_xdigit(s: &[u8]) -> bool
PHP ctype_xdigit on a string: non-empty and all hexadecimal digits.
ctype_xdigit