Struct swc_ecma_transforms::Assumptions
source · #[non_exhaustive]pub struct Assumptions {Show 23 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_function_name: 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,
pub ts_enum_is_readonly: 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: boolhttps://babeljs.io/docs/en/assumptions#arraylikeisiterable
constant_reexports: boolhttps://babeljs.io/docs/en/assumptions#constantreexports
constant_super: boolhttps://babeljs.io/docs/en/assumptions#constantsuper
enumerable_module_meta: boolhttps://babeljs.io/docs/en/assumptions#enumerablemodulemeta
ignore_function_length: boolhttps://babeljs.io/docs/en/assumptions#ignorefunctionlength
ignore_function_name: bool§ignore_to_primitive_hint: boolhttps://babeljs.io/docs/en/assumptions#ignoretoprimitivehint
iterable_is_array: boolhttps://babeljs.io/docs/en/assumptions#iterableisarray
mutable_template_object: boolhttps://babeljs.io/docs/en/assumptions#mutabletemplateobject
no_class_calls: boolhttps://babeljs.io/docs/en/assumptions#noclasscalls
no_document_all: boolhttps://babeljs.io/docs/en/assumptions#nodocumentall
no_incomplete_ns_import_detection: boolhttps://babeljs.io/docs/en/assumptions#noincompletensimportdetection
no_new_arrows: boolhttps://babeljs.io/docs/en/assumptions#nonewarrows
object_rest_no_symbols: boolhttps://babeljs.io/docs/en/assumptions#objectrestnosymbols
private_fields_as_properties: boolhttps://babeljs.io/docs/en/assumptions#privatefieldsasproperties
pure_getters: boolhttps://babeljs.io/docs/en/assumptions#puregetters
set_class_methods: boolhttps://babeljs.io/docs/en/assumptions#setclassmethods
set_computed_properties: boolhttps://babeljs.io/docs/en/assumptions#setcomputedproperties
set_public_class_fields: boolhttps://babeljs.io/docs/en/assumptions#setpublicclassfields
set_spread_properties: boolhttps://babeljs.io/docs/en/assumptions#setspreadproperties
skip_for_of_iterator_closing: boolhttps://babeljs.io/docs/en/assumptions#skipforofiteratorclosing
super_is_callable_constructor: boolhttps://babeljs.io/docs/en/assumptions#superiscallableconstructor
ts_enum_is_readonly: boolImplementations§
source§impl Assumptions
impl Assumptions
pub fn all() -> Assumptions
Trait Implementations§
source§impl Clone for Assumptions
impl Clone for Assumptions
source§fn clone(&self) -> Assumptions
fn clone(&self) -> Assumptions
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for Assumptions
impl Debug for Assumptions
source§impl Default for Assumptions
impl Default for Assumptions
source§fn default() -> Assumptions
fn default() -> Assumptions
source§impl<'de> Deserialize<'de> for Assumptions
impl<'de> Deserialize<'de> for Assumptions
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Assumptions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<Assumptions, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
source§impl Hash for Assumptions
impl Hash for Assumptions
source§impl Ord for Assumptions
impl Ord for Assumptions
source§fn cmp(&self, other: &Assumptions) -> Ordering
fn cmp(&self, other: &Assumptions) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
source§impl PartialEq for Assumptions
impl PartialEq for Assumptions
source§fn eq(&self, other: &Assumptions) -> bool
fn eq(&self, other: &Assumptions) -> bool
self and other values to be equal, and is used
by ==.source§impl PartialOrd for Assumptions
impl PartialOrd for Assumptions
source§fn partial_cmp(&self, other: &Assumptions) -> Option<Ordering>
fn partial_cmp(&self, other: &Assumptions) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl Serialize for Assumptions
impl Serialize for Assumptions
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
impl Copy for Assumptions
impl Eq for Assumptions
impl StructuralEq for Assumptions
impl StructuralPartialEq for Assumptions
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§
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.