Skip to main content

is_printable_byte

Function is_printable_byte 

Source
pub exec fn is_printable_byte(b: u8) -> bool
Expand description
returns
matches!(
    b, b'A'..= b'Z' | b'a'..= b'z' | b'0'..= b'9' | b' ' | b'\'' | b'(' | b')' | b'+' |
    b',' | b'-' | b'.' | b'/' | b':' | b'=' | b'?'
),

Tests membership in PrintableString’s ASCII repertoire.