rocket::mtls::x509::der_parser::asn1_rs::nom::character

Function is_newline

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

Tests if byte is ASCII newline: \n

ยงExample

assert_eq!(is_newline(b'\n'), true);
assert_eq!(is_newline(b'\r'), false);
assert_eq!(is_newline(b' '), false);
assert_eq!(is_newline(b'\t'), false);