Trait shell_quote::QuoteExt

source ·
pub trait QuoteExt {
    // Required method
    fn push_quoted<'a, Q: Quoter, S: ?Sized + Into<Quotable<'a>>>(
        &mut self,
        q: Q,
        s: S,
    );
}
Expand description

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

Required Methods§

source

fn push_quoted<'a, Q: Quoter, S: ?Sized + Into<Quotable<'a>>>( &mut self, q: Q, s: S, )

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl QuoteExt for String

source§

fn push_quoted<'a, Q: Quoter, S: ?Sized + Into<Quotable<'a>>>( &mut self, _q: Q, s: S, )

source§

impl QuoteExt for Vec<u8>

source§

fn push_quoted<'a, Q: Quoter, S: ?Sized + Into<Quotable<'a>>>( &mut self, _q: Q, s: S, )

source§

impl QuoteExt for OsString

source§

fn push_quoted<'a, Q: Quoter, S: ?Sized + Into<Quotable<'a>>>( &mut self, _q: Q, s: S, )

source§

impl QuoteExt for BString

source§

fn push_quoted<'a, Q: Quoter, S: ?Sized + Into<Quotable<'a>>>( &mut self, _q: Q, s: S, )

Implementors§