whatwg_infra::scalar

Function is_c0_control_space

Source
pub const fn is_c0_control_space(c: char) -> bool
Expand description

Checks if a character is a C0 control or space (U+0020 SPACE).

See also: WHATWG Infra Standard definition

ยงExamples

use whatwg_infra::scalar::is_c0_control_space;

assert!(is_c0_control_space(' '));
assert!(is_c0_control_space('\u{0019}'));