Struct swc_ecma_transforms_base::assumptions::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: 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_function_name: bool
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
ts_enum_is_readonly: bool
Implementations
sourceimpl Assumptions
impl Assumptions
Trait Implementations
sourceimpl Clone for Assumptions
impl Clone for Assumptions
sourcefn clone(&self) -> Assumptions
fn clone(&self) -> Assumptions
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl Debug for Assumptions
impl Debug for Assumptions
sourceimpl Default for Assumptions
impl Default for Assumptions
sourcefn default() -> Assumptions
fn default() -> Assumptions
sourceimpl<'de> Deserialize<'de> for Assumptions
impl<'de> Deserialize<'de> for Assumptions
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>,
sourceimpl Hash for Assumptions
impl Hash for Assumptions
sourceimpl Ord for Assumptions
impl Ord for Assumptions
sourcefn cmp(&self, other: &Assumptions) -> Ordering
fn cmp(&self, other: &Assumptions) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
sourceimpl PartialEq<Assumptions> for Assumptions
impl PartialEq<Assumptions> for Assumptions
sourcefn eq(&self, other: &Assumptions) -> bool
fn eq(&self, other: &Assumptions) -> bool
sourceimpl PartialOrd<Assumptions> for Assumptions
impl PartialOrd<Assumptions> for Assumptions
sourcefn partial_cmp(&self, other: &Assumptions) -> Option<Ordering>
fn partial_cmp(&self, other: &Assumptions) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresourceimpl Serialize for Assumptions
impl Serialize for Assumptions
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
sourceimpl<T> CallHasher for Twhere
T: Hash + ?Sized,
impl<T> CallHasher for Twhere
T: Hash + ?Sized,
sourceimpl<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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.