QuoteRefExt

Trait 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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

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