Function yash_quote::quote
source · pub fn quote(raw: &str) -> Cow<'_, str>
Expand description
Quotes the argument.
If the argument needs no quoting, the return value is Borrowed(raw)
.
Otherwise, it is Owned(new_quoted_string)
.
See the module doc for more details.