Skip to main content

escaped

Function escaped 

Source
pub fn escaped(s: &str) -> String
Expand description

s as a quoted literal: backslash, quote, line breaks, tabs and every invisible character written as an escape, so a literal \n in the data ("\\n") never reads as a line break, and leading or trailing spaces and an empty string show by the quotes around them.