Trait shell_quote::QuoteRefExt

source ·
pub trait QuoteRefExt<Output> {
    // Required method
    fn quoted<Q: Quoter>(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 types like Vec<u8>, String, OsString on Unix, and bstr::BString if it’s enabled.

Required Methods§

source

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

Object Safety§

This trait is not object safe.

Implementors§

source§

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

source§

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

source§

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

source§

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