pub enum JsxEmit {
Preserve,
React,
ReactJsx,
ReactJsxDev,
ReactNative,
}Variants§
Preserve
Keep the JSX as part of the output to be further transformed by another transform step.
React
Emit .js files with JSX changed to the equivalent React.createElement calls.
ReactJsx
Emit .js files with the JSX changed to _jsx calls.
ReactJsxDev
Emit .js files with the JSX changed to _jsx calls (development mode).
ReactNative
Keep the JSX as part of the output (like preserve), but also emit .js files.
Trait Implementations§
impl Copy for JsxEmit
impl Eq for JsxEmit
impl StructuralPartialEq for JsxEmit
Auto Trait Implementations§
impl Freeze for JsxEmit
impl RefUnwindSafe for JsxEmit
impl Send for JsxEmit
impl Sync for JsxEmit
impl Unpin for JsxEmit
impl UnsafeUnpin for JsxEmit
impl UnwindSafe for JsxEmit
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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more