rocket::mtls::oid::asn1_rs::nom::character

Function is_oct_digit

Source
pub fn is_oct_digit(chr: u8) -> bool
Available on crate feature mtls only.
Expand description

Tests if byte is ASCII octal digit: 0-7

ยงExample

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