pub fn try_quote(in_bytes: &[u8]) -> Result<Cow<'_, [u8]>, QuoteError>Expand description
Given a single word, return a string suitable to encode it as a shell argument.
Uses default settings. The only error that can be returned is QuoteError::Nul.
Equivalent to Quoter::new().quote(in_bytes).
(That configuration never returns Err, so this function does not panic.)
The string equivalent is shlex::try_quote.