Skip to main content

quote

Function quote 

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

Wrap s in single quotes, escaping any embedded single quotes using the portable POSIX idiom '\''. Always returns a quoted string, even for the empty string — callers should never concatenate unquoted.