Struct swc_ecma_transforms::Assumptions
source · [−]#[non_exhaustive]pub struct Assumptions {Show 21 fields
pub array_like_is_iterable: bool,
pub constant_reexports: bool,
pub constant_super: bool,
pub enumerable_module_meta: bool,
pub ignore_function_length: bool,
pub ignore_to_primitive_hint: bool,
pub iterable_is_array: bool,
pub mutable_template_object: bool,
pub no_class_calls: bool,
pub no_document_all: bool,
pub no_incomplete_ns_import_detection: bool,
pub no_new_arrows: bool,
pub object_rest_no_symbols: bool,
pub private_fields_as_properties: bool,
pub pure_getters: bool,
pub set_class_methods: bool,
pub set_computed_properties: bool,
pub set_public_class_fields: bool,
pub set_spread_properties: bool,
pub skip_for_of_iterator_closing: bool,
pub super_is_callable_constructor: bool,
}
Expand description
Alternative for https://babeljs.io/docs/en/assumptions
All fields default to false
.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.array_like_is_iterable: bool
https://babeljs.io/docs/en/assumptions#arraylikeisiterable
constant_reexports: bool
https://babeljs.io/docs/en/assumptions#constantreexports
constant_super: bool
https://babeljs.io/docs/en/assumptions#constantsuper
enumerable_module_meta: bool
https://babeljs.io/docs/en/assumptions#enumerablemodulemeta
ignore_function_length: bool
https://babeljs.io/docs/en/assumptions#ignorefunctionlength
ignore_to_primitive_hint: bool
https://babeljs.io/docs/en/assumptions#ignoretoprimitivehint
iterable_is_array: bool
https://babeljs.io/docs/en/assumptions#iterableisarray
mutable_template_object: bool
https://babeljs.io/docs/en/assumptions#mutabletemplateobject
no_class_calls: bool
https://babeljs.io/docs/en/assumptions#noclasscalls
no_document_all: bool
https://babeljs.io/docs/en/assumptions#nodocumentall
no_incomplete_ns_import_detection: bool
https://babeljs.io/docs/en/assumptions#noincompletensimportdetection
no_new_arrows: bool
https://babeljs.io/docs/en/assumptions#nonewarrows
object_rest_no_symbols: bool
https://babeljs.io/docs/en/assumptions#objectrestnosymbols
private_fields_as_properties: bool
https://babeljs.io/docs/en/assumptions#privatefieldsasproperties
pure_getters: bool
https://babeljs.io/docs/en/assumptions#puregetters
set_class_methods: bool
https://babeljs.io/docs/en/assumptions#setclassmethods
set_computed_properties: bool
https://babeljs.io/docs/en/assumptions#setcomputedproperties
set_public_class_fields: bool
https://babeljs.io/docs/en/assumptions#setpublicclassfields
set_spread_properties: bool
https://babeljs.io/docs/en/assumptions#setspreadproperties
skip_for_of_iterator_closing: bool
https://babeljs.io/docs/en/assumptions#skipforofiteratorclosing
super_is_callable_constructor: bool
https://babeljs.io/docs/en/assumptions#superiscallableconstructor
Implementations
Trait Implementations
Returns the “default value” for a type. Read more
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Assumptions, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Assumptions, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Assumptions
impl Send for Assumptions
impl Sync for Assumptions
impl Unpin for Assumptions
impl UnwindSafe for Assumptions
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
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