Struct swc::config::Options[][src]

pub struct Options {
Show 19 fields pub config: Config, pub skip_helper_injection: bool, pub disable_hygiene: bool, pub disable_fixer: bool, pub global_mark: Option<Mark>, pub cwd: PathBuf, pub caller: Option<CallerOptions>, pub filename: String, pub config_file: Option<ConfigFile>, pub root: Option<PathBuf>, pub root_mode: RootMode, pub swcrc: bool, pub swcrc_roots: Option<PathBuf>, pub env_name: String, pub source_maps: Option<SourceMapsConfig>, pub source_file_name: Option<String>, pub source_root: Option<String>, pub is_module: IsModule, pub output_path: Option<PathBuf>,
}

Fields

config: Configskip_helper_injection: booldisable_hygiene: booldisable_fixer: boolglobal_mark: Option<Mark>cwd: PathBufcaller: Option<CallerOptions>filename: Stringconfig_file: Option<ConfigFile>root: Option<PathBuf>root_mode: RootModeswcrc: boolswcrc_roots: Option<PathBuf>env_name: Stringsource_maps: Option<SourceMapsConfig>source_file_name: Option<String>source_root: Option<String>is_module: IsModuleoutput_path: Option<PathBuf>

Implementations

parse: (syntax, target, is_module)

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

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

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