Skip to main content

is_control_character

Function is_control_character 

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

Returns true if c is a control character that could affect terminal state.

This checks for both C0 (U+0000..=U+001F) and C1 (U+0080..=U+009F) control codes as well as DEL (U+007F).