#[non_exhaustive]pub enum QuoteStyle {
Preserve,
Double,
Single,
Unquoted,
}Expand description
Preferred value quoting while formatting.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Preserve
Leave the existing quote style untouched.
Double
Prefer a double-quoted value where the selected dialect can represent it.
Single
Prefer a single-quoted value where the selected dialect can represent it.
Unquoted
Prefer an unquoted value where it remains unambiguous.
Trait Implementations§
Source§impl Clone for QuoteStyle
impl Clone for QuoteStyle
impl Copy for QuoteStyle
Source§impl Debug for QuoteStyle
impl Debug for QuoteStyle
impl Eq for QuoteStyle
Source§impl Hash for QuoteStyle
impl Hash for QuoteStyle
Source§impl PartialEq for QuoteStyle
impl PartialEq for QuoteStyle
impl StructuralPartialEq for QuoteStyle
Auto Trait Implementations§
impl Freeze for QuoteStyle
impl RefUnwindSafe for QuoteStyle
impl Send for QuoteStyle
impl Sync for QuoteStyle
impl Unpin for QuoteStyle
impl UnsafeUnpin for QuoteStyle
impl UnwindSafe for QuoteStyle
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