Function std::char::is_control

pub fn is_control(c: char) -> bool

Indicates whether a character is a control character. Control characters are defined in terms of the Unicode General Category 'Cc'.