Struct swc_ecma_minifier::option::terser::TerserCompressorOptions[][src]

pub struct TerserCompressorOptions {
Show 54 fields pub arguments: bool, pub arrows: Option<bool>, pub booleans: Option<bool>, pub booleans_as_integers: bool, pub collapse_vars: Option<bool>, pub comparisons: Option<bool>, pub computed_props: bool, pub conditionals: bool, pub dead_code: bool, pub defaults: bool, pub directives: bool, pub drop_console: bool, pub drop_debugger: Option<bool>, pub ecma: TerserEcmaVersion, pub evaluate: Option<bool>, pub expression: bool, pub global_defs: AHashMap<JsWord, Value>, pub hoist_funs: bool, pub hoist_props: Option<bool>, pub hoist_vars: bool, pub ie8: bool, pub if_return: Option<bool>, pub inline: Option<TerserInlineOption>, pub join_vars: Option<bool>, pub keep_classnames: bool, pub keep_fargs: Option<bool>, pub keep_fnames: bool, pub keep_infinity: bool, pub loops: Option<bool>, pub negate_iife: Option<bool>, pub passes: usize, pub properties: Option<bool>, pub pure_getters: TerserPureGetterOption, pub pure_funcs: Vec<String>, pub reduce_funcs: bool, pub reduce_vars: bool, pub sequences: Option<TerserSequenceOptions>, pub side_effects: Option<bool>, pub switches: bool, pub top_retain: Option<TerserTopRetainOption>, pub toplevel: Option<TerserTopLevelOptions>, pub typeofs: Option<bool>, pub unsafe_passes: bool, pub unsafe_arrows: bool, pub unsafe_comps: bool, pub unsafe_function: bool, pub unsafe_math: bool, pub unsafe_symbols: bool, pub unsafe_methods: bool, pub unsafe_proto: bool, pub unsafe_regexp: bool, pub unsafe_undefined: bool, pub unused: Option<bool>, pub module: bool,
}

Fields

arguments: boolarrows: Option<bool>booleans: Option<bool>booleans_as_integers: boolcollapse_vars: Option<bool>comparisons: Option<bool>computed_props: boolconditionals: booldead_code: booldefaults: booldirectives: booldrop_console: booldrop_debugger: Option<bool>ecma: TerserEcmaVersionevaluate: Option<bool>expression: boolglobal_defs: AHashMap<JsWord, Value>hoist_funs: boolhoist_props: Option<bool>hoist_vars: boolie8: boolif_return: Option<bool>inline: Option<TerserInlineOption>join_vars: Option<bool>keep_classnames: boolkeep_fargs: Option<bool>keep_fnames: boolkeep_infinity: boolloops: Option<bool>negate_iife: Option<bool>passes: usizeproperties: Option<bool>pure_getters: TerserPureGetterOptionpure_funcs: Vec<String>reduce_funcs: boolreduce_vars: boolsequences: Option<TerserSequenceOptions>side_effects: Option<bool>switches: booltop_retain: Option<TerserTopRetainOption>toplevel: Option<TerserTopLevelOptions>typeofs: Option<bool>unsafe_passes: boolunsafe_arrows: boolunsafe_comps: boolunsafe_function: boolunsafe_math: boolunsafe_symbols: boolunsafe_methods: boolunsafe_proto: boolunsafe_regexp: boolunsafe_undefined: boolunused: Option<bool>module: bool

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

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

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.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

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