Enum swc_ecma_preset_env::Feature
source · [−]pub enum Feature {
Show 50 variants
TemplateLiterals,
Literals,
FunctionName,
ArrowFunctions,
BlockScopedFunctions,
Classes,
ObjectSuper,
ShorthandProperties,
DuplicateKeys,
ComputedProperties,
ForOf,
StickyRegex,
DotAllRegex,
UnicodeRegex,
Spread,
Parameters,
Destructuring,
BlockScoping,
TypeOfSymbol,
NewTarget,
Regenerator,
ExponentiationOperator,
AsyncToGenerator,
AsyncGeneratorFunctions,
ObjectRestSpread,
UnicodePropertyRegex,
JsonStrings,
OptionalCatchBinding,
NamedCapturingGroupsRegex,
MemberExpressionLiterals,
PropertyLiterals,
ReservedWords,
ExportNamespaceFrom,
NullishCoalescing,
LogicalAssignmentOperators,
OptionalChaining,
ClassProperties,
NumericSeparator,
PrivateMethods,
ClassStaticBlock,
PrivatePropertyInObject,
UnicodeEscapes,
BugfixAsyncArrowsInClass,
BugfixEdgeDefaultParam,
BugfixTaggedTemplateCaching,
BugfixSafariIdDestructuringCollisionInFunctionExpression,
BugfixTransformEdgeFunctionName,
BugfixTransformSafariBlockShadowing,
BugfixTransformSafariForShadowing,
BugfixTransformV8SpreadParametersInOptionalChaining,
}
Variants
TemplateLiterals
transform-template-literals
Literals
transform-literals
FunctionName
transform-function-name
ArrowFunctions
transform-arrow-functions
BlockScopedFunctions
transform-block-scoped-functions
Classes
transform-classes
ObjectSuper
transform-object-super
ShorthandProperties
transform-shorthand-properties
DuplicateKeys
transform-duplicate-keys
ComputedProperties
transform-computed-properties
ForOf
transform-for-of
StickyRegex
transform-sticky-regex
DotAllRegex
transform-dotall-regex
UnicodeRegex
transform-unicode-regex
Spread
transform-spread
Parameters
transform-parameters
Destructuring
transform-destructuring
BlockScoping
transform-block-scoping
TypeOfSymbol
transform-typeof-symbol
NewTarget
transform-new-target
Regenerator
transform-regenerator
ExponentiationOperator
transform-exponentiation-operator
AsyncToGenerator
transform-async-to-generator
AsyncGeneratorFunctions
proposal-async-generator-functions
ObjectRestSpread
proposal-object-rest-spread
UnicodePropertyRegex
proposal-unicode-property-regex
JsonStrings
proposal-json-strings
OptionalCatchBinding
proposal-optional-catch-binding
NamedCapturingGroupsRegex
transform-named-capturing-groups-regex
MemberExpressionLiterals
transform-member-expression-literals
PropertyLiterals
transform-property-literals
ReservedWords
transform-reserved-words
ExportNamespaceFrom
proposal-export-namespace-from
NullishCoalescing
proposal-nullish-coalescing-operator
LogicalAssignmentOperators
proposal-logical-assignment-operators
OptionalChaining
proposal-optional-chaining
ClassProperties
proposal-class-properties
NumericSeparator
proposal-numeric-separator
PrivateMethods
proposal-private-methods
ClassStaticBlock
proposal-class-static-block
PrivatePropertyInObject
proposal-private-property-in-object
UnicodeEscapes
transform-unicode-escapes
BugfixAsyncArrowsInClass
bugfix/transform-async-arrows-in-class
BugfixEdgeDefaultParam
bugfix/transform-edge-default-parameters
BugfixTaggedTemplateCaching
bugfix/transform-tagged-template-caching
BugfixSafariIdDestructuringCollisionInFunctionExpression
bugfix/transform-safari-id-destructuring-collision-in-function-expression
BugfixTransformEdgeFunctionName
bugfix/transform-edge-function-name
BugfixTransformSafariBlockShadowing
bugfix/transform-safari-block-shadowing
BugfixTransformSafariForShadowing
bugfix/transform-safari-for-shadowing
BugfixTransformV8SpreadParametersInOptionalChaining
bugfix/transform-v8-spread-parameters-in-optional-chaining
Implementations
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Feature
impl<'de> Deserialize<'de> for Feature
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 From<Feature> for FeatureOrModule
impl From<Feature> for FeatureOrModule
impl Copy for Feature
impl Eq for Feature
impl StructuralEq for Feature
impl StructuralPartialEq for Feature
Auto Trait Implementations
impl RefUnwindSafe for Feature
impl Send for Feature
impl Sync for Feature
impl Unpin for Feature
impl UnwindSafe for Feature
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> CallHasher for T where
T: Hash + ?Sized,
impl<T> CallHasher for T where
T: Hash + ?Sized,
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more