Skip to main content

is_tchar

Function is_tchar 

Source
pub const fn is_tchar(b: u8) -> bool
Expand description

Whether b is a tchar, a byte allowed in a token (RFC 9110 section 5.6.2).

ยงExamples

assert!(parse_net::class::is_tchar(b'~'));
assert!(!parse_net::class::is_tchar(b'('));