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

pub struct Options {
    pub config: Option<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 input_source_map: InputSourceMap,
    pub source_maps: Option<SourceMapsConfig>,
    pub source_file_name: Option<String>,
    pub source_root: Option<String>,
    pub is_module: bool,
}

Fields

config: Option<Config>skip_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: Stringinput_source_map: InputSourceMapsource_maps: Option<SourceMapsConfig>source_file_name: Option<String>source_root: Option<String>is_module: bool

Implementations

impl Options[src]

impl Options[src]

pub fn build<'a>(
    &self,
    cm: &Arc<SourceMap>,
    handler: &Handler,
    is_module: bool,
    config: Option<Config>,
    comments: Option<&'a dyn Comments>
) -> BuiltConfig<impl 'a + Fold>
[src]

Trait Implementations

impl Clone for Options[src]

impl Debug for Options[src]

impl Default for Options[src]

impl<'de> Deserialize<'de> for Options[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> Erased for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Node for T where
    T: Any + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.