#[non_exhaustive]pub struct Assumptions {Show 22 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,
}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
Implementations§
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§impl PartialOrd for Assumptions
impl PartialOrd for Assumptions
Source§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 StructuralPartialEq for Assumptions
Auto Trait Implementations§
impl Freeze for Assumptions
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more