pub fn escape_for_diagnostic(text: &str) -> String
text with every invisible or control character except line feed and tab written as \u{…} (module doc).
text
\u{…}