pub enum Jsx {
React,
ReactJsx,
ReactJsxdev,
ReactNative,
Preserve,
}Expand description
Specify what JSX code is generated. See more: https://www.typescriptlang.org/tsconfig/#jsx
Variants§
React
Emit .js files with JSX changed to the equivalent React.createElement calls
ReactJsx
Emit .js files with the JSX changed to _jsx calls optimized for production
ReactJsxdev
Emit .js files with the JSX changed to _jsx calls for development only
ReactNative
Emit .js files with the JSX unchanged
Preserve
Emit .jsx files with the JSX unchanged
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Jsx
impl<'de> Deserialize<'de> for Jsx
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
impl Copy for Jsx
impl Eq for Jsx
impl StructuralPartialEq for Jsx
Auto Trait Implementations§
impl Freeze for Jsx
impl RefUnwindSafe for Jsx
impl Send for Jsx
impl Sync for Jsx
impl Unpin for Jsx
impl UnsafeUnpin for Jsx
impl UnwindSafe for Jsx
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.