nom::character

Function is_space

Source
pub fn is_space(chr: u8) -> bool
Expand description

Tests if byte is ASCII space or tab

ยงExample

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