pub fn is_hex(s: &str, byte_len: Option<usize>) -> boolExpand description
true iff s parses as hex (with or without 0x). When
byte_len is Some(n), also requires the decoded length to
equal n bytes — handy for “is this a valid 32-byte hash” checks.