pub enum QuotingStyle {
Literal,
Locale,
Shell,
ShellAlways,
ShellEscape,
ShellEscapeAlways,
C,
Escape,
}Expand description
Filename quoting style (GNU --quoting-style).
Variants§
Literal
No quoting (-N / literal).
Locale
Locale-aware (treated like shell-escape for nongraphic).
Shell
Quote when needed for the shell.
ShellAlways
Always single-quote.
ShellEscape
Shell quoting with $'' escapes for nongraphic.
ShellEscapeAlways
Always use shell-escape style.
C
Double quotes with C escapes (-Q / c).
Escape
C escapes without surrounding quotes (-b / escape).
Implementations§
Trait Implementations§
Source§impl Clone for QuotingStyle
impl Clone for QuotingStyle
Source§fn clone(&self) -> QuotingStyle
fn clone(&self) -> QuotingStyle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for QuotingStyle
Source§impl Debug for QuotingStyle
impl Debug for QuotingStyle
Source§impl Default for QuotingStyle
impl Default for QuotingStyle
Source§fn default() -> QuotingStyle
fn default() -> QuotingStyle
Returns the “default value” for a type. Read more
impl Eq for QuotingStyle
Source§impl PartialEq for QuotingStyle
impl PartialEq for QuotingStyle
impl StructuralPartialEq for QuotingStyle
Auto Trait Implementations§
impl Freeze for QuotingStyle
impl RefUnwindSafe for QuotingStyle
impl Send for QuotingStyle
impl Sync for QuotingStyle
impl Unpin for QuotingStyle
impl UnsafeUnpin for QuotingStyle
impl UnwindSafe for QuotingStyle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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