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
sourceimpl Clone for JsxQuoteStyle
impl Clone for JsxQuoteStyle
sourcefn clone(&self) -> JsxQuoteStyle
fn clone(&self) -> JsxQuoteStyle
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<'de> Deserialize<'de> for JsxQuoteStyle
impl<'de> Deserialize<'de> for JsxQuoteStyle
sourcefn 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
sourceimpl FromStr for JsxQuoteStyle
impl FromStr for JsxQuoteStyle
sourceimpl PartialEq<JsxQuoteStyle> for JsxQuoteStyle
impl PartialEq<JsxQuoteStyle> for JsxQuoteStyle
sourcefn eq(&self, other: &JsxQuoteStyle) -> bool
fn eq(&self, other: &JsxQuoteStyle) -> bool
sourceimpl Serialize for JsxQuoteStyle
impl Serialize for JsxQuoteStyle
sourceimpl 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more