pub enum JsxQuoteStyle {
    PreferDouble,
    PreferSingle,
}Expand description
Whether to use single or double quotes for JSX attributes.
Variants§
PreferDouble
Prefer using double quotes except in scenarios where the string contains more double quotes than single quotes.
PreferSingle
Prefer using single quotes except in scenarios where the string contains more single quotes than double quotes.
Trait Implementations§
source§impl Clone for JsxQuoteStyle
 
impl Clone for JsxQuoteStyle
source§fn clone(&self) -> JsxQuoteStyle
 
fn clone(&self) -> JsxQuoteStyle
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moresource§impl<'de> Deserialize<'de> for JsxQuoteStyle
 
impl<'de> Deserialize<'de> for JsxQuoteStyle
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl FromStr for JsxQuoteStyle
 
impl FromStr for JsxQuoteStyle
source§impl PartialEq for JsxQuoteStyle
 
impl PartialEq for JsxQuoteStyle
source§fn eq(&self, other: &JsxQuoteStyle) -> bool
 
fn eq(&self, other: &JsxQuoteStyle) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.source§impl Serialize for JsxQuoteStyle
 
impl Serialize for JsxQuoteStyle
source§impl ToString for JsxQuoteStyle
 
impl ToString for JsxQuoteStyle
impl Copy for JsxQuoteStyle
impl StructuralPartialEq for JsxQuoteStyle
Auto Trait Implementations§
impl RefUnwindSafe for JsxQuoteStyle
impl Send for JsxQuoteStyle
impl Sync for JsxQuoteStyle
impl Unpin for JsxQuoteStyle
impl UnwindSafe for JsxQuoteStyle
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