Struct swc::config::Options [−][src]
Fields
config: Option<Config>
skip_helper_injection: bool
disable_hygiene: bool
disable_fixer: bool
global_mark: Option<Mark>
cwd: PathBuf
caller: Option<CallerOptions>
filename: String
config_file: Option<ConfigFile>
root: Option<PathBuf>
root_mode: RootMode
swcrc: bool
swcrc_roots: Option<PathBuf>
env_name: String
input_source_map: InputSourceMap
source_maps: Option<SourceMapsConfig>
source_file_name: Option<String>
source_root: Option<String>
is_module: bool
Implementations
impl Options
[src]
pub fn codegen_target(&self) -> Option<JscTarget>
[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]
&self,
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]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl RefUnwindSafe for Options
[src]
impl Send for Options
[src]
impl Sync for Options
[src]
impl Unpin for Options
[src]
impl UnwindSafe for Options
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> Erased for T
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Node for T where
T: Any + ?Sized,
[src]
T: Any + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,