#[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
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional 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 a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. 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 returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Restrict a value to a certain interval. 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

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

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.

Should always be Self

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

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