Enum swc_ecma_preset_env::Feature[][src]

pub enum Feature {
Show 43 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, UnicodeEscapes, BugfixAsyncArrowsInClass, BugfixEdgeDefaultParam, BugfixTaggedTemplateCaching,
}

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

UnicodeEscapes

transform-unicode-escapes

BugfixAsyncArrowsInClass

bugfix/transform-async-arrows-in-class

BugfixEdgeDefaultParam

bugfix/transform-edge-default-parameters

BugfixTaggedTemplateCaching

bugfix/transform-tagged-template-caching

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more