pub struct QuoteOptions { /* private fields */ }Expand description
Options for quote: how to quote a string so that, read back as a shell
word, it yields just that string, and which chars that are special only in
some places (or to some readers) to treat as special.
Build one with QuoteOptions::builder; every option defaults to off (and
the mode to QuoteMode::SingleQuote), which is what quote_if_needed
uses.
Implementations§
Source§impl QuoteOptions
impl QuoteOptions
Sourcepub fn builder() -> QuoteOptionsBuilder
pub fn builder() -> QuoteOptionsBuilder
Create an instance of QuoteOptions using the builder syntax
Trait Implementations§
Source§impl Clone for QuoteOptions
impl Clone for QuoteOptions
Source§impl Debug for QuoteOptions
impl Debug for QuoteOptions
Auto Trait Implementations§
impl Freeze for QuoteOptions
impl RefUnwindSafe for QuoteOptions
impl Send for QuoteOptions
impl Sync for QuoteOptions
impl Unpin for QuoteOptions
impl UnsafeUnpin for QuoteOptions
impl UnwindSafe for QuoteOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more