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

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,


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


impl Options[src]

pub fn codegen_target(&self) -> Option<JscTarget>[src]

impl Options[src]

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

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

impl RefUnwindSafe for Options

impl Send for Options

impl Sync for Options

impl Unpin for Options

impl UnwindSafe for Options

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T> Erased for T[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 

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

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.