Trait shell_quote::QuoteRefExt

source ·
pub trait QuoteRefExt<Output: Default> {
    // Required method
    fn quoted<Q: Quote<Output>>(self, q: Q) -> Output;
}
Expand description

Extension trait for shell quoting many different owned and reference types, e.g. &[u8], &str – anything that’s Quotable – into owned container types like Vec<u8>, String, OsString on Unix, and bstr::BString if it’s enabled.

Required Methods§

source

fn quoted<Q: Quote<Output>>(self, q: Q) -> Output

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<'a, S, OUT: Default> QuoteRefExt<OUT> for S
where S: ?Sized + Into<Quotable<'a>>,