Trait shell_quote::QuoteExt

source ·
pub trait QuoteExt {
    // Required methods
    fn push_quoted<Q: Quoter, S: ?Sized + AsRef<[u8]>>(&mut self, q: Q, s: &S);
    fn quoted<Q: Quoter, S: ?Sized + AsRef<[u8]>>(q: Q, s: &S) -> Self;
}
Expand description

Extension trait for shell quoting byte slices (e.g. &[u8], &str) into byte container types like Vec<u8>, String (and OsString on Unix).

Required Methods§

source

fn push_quoted<Q: Quoter, S: ?Sized + AsRef<[u8]>>(&mut self, q: Q, s: &S)

source

fn quoted<Q: Quoter, S: ?Sized + AsRef<[u8]>>(q: Q, s: &S) -> Self

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl QuoteExt for String

source§

fn push_quoted<Q: Quoter, S: ?Sized + AsRef<[u8]>>(&mut self, _q: Q, s: &S)

source§

fn quoted<Q: Quoter, S: ?Sized + AsRef<[u8]>>(_q: Q, s: &S) -> Self

source§

impl QuoteExt for Vec<u8>

source§

fn push_quoted<Q: Quoter, S: ?Sized + AsRef<[u8]>>(&mut self, _q: Q, s: &S)

source§

fn quoted<Q: Quoter, S: ?Sized + AsRef<[u8]>>(_q: Q, s: &S) -> Self

source§

impl QuoteExt for OsString

source§

fn push_quoted<Q: Quoter, S: ?Sized + AsRef<[u8]>>(&mut self, _q: Q, s: &S)

source§

fn quoted<Q: Quoter, S: ?Sized + AsRef<[u8]>>(_q: Q, s: &S) -> Self

Implementors§