Function rocket::mtls::oid::asn1_rs::nom::character::is_alphanumeric

source ·
pub fn is_alphanumeric(chr: u8) -> bool
Available on crate feature mtls only.
Expand description

Tests if byte is ASCII alphanumeric: A-Z, a-z, 0-9

§Example

assert_eq!(is_alphanumeric(b'-'), false);
assert_eq!(is_alphanumeric(b'a'), true);
assert_eq!(is_alphanumeric(b'9'), true);
assert_eq!(is_alphanumeric(b'A'), true);