pub enum JsxMode {
None,
Preserve,
React,
ReactJsx,
ReactJsxDev,
ReactNative,
}Expand description
JSX emit mode controlling how JSX is transformed.
Variants§
None
No JSX mode specified (default — treated same as None/no JSX).
Preserve
Keep JSX as-is in the output (no factory required in scope).
React
Classic React transform — requires factory (e.g. React.createElement) in scope.
ReactJsx
Automatic React transform via _jsx — factory NOT required in scope.
ReactJsxDev
Development automatic React transform — factory NOT required in scope.
ReactNative
React Native — preserve JSX (no factory required in scope).
Trait Implementations§
impl Copy for JsxMode
impl Eq for JsxMode
impl StructuralPartialEq for JsxMode
Auto Trait Implementations§
impl Freeze for JsxMode
impl RefUnwindSafe for JsxMode
impl Send for JsxMode
impl Sync for JsxMode
impl Unpin for JsxMode
impl UnsafeUnpin for JsxMode
impl UnwindSafe for JsxMode
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.