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: 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
source_maps: Option<SourceMapsConfig>
source_file_name: Option<String>
source_root: Option<String>
is_module: IsModule
output_path: Option<PathBuf>
Implementations
sourceimpl Options
impl Options
sourcepub fn build_as_input<'a, P>(
&self,
cm: &Arc<SourceMap>,
base: &FileName,
parse: impl FnOnce(Syntax, EsVersion, IsModule) -> Result<Program, Error>,
output_path: Option<&Path>,
source_file_name: Option<String>,
handler: &Handler,
is_module: IsModule,
config: Option<Config>,
comments: Option<&'a SingleThreadedComments>,
custom_before_pass: impl FnOnce(&Program) -> P
) -> Result<BuiltInput<impl 'a + Fold>, Error> where
P: 'a + Fold,
pub fn build_as_input<'a, P>(
&self,
cm: &Arc<SourceMap>,
base: &FileName,
parse: impl FnOnce(Syntax, EsVersion, IsModule) -> Result<Program, Error>,
output_path: Option<&Path>,
source_file_name: Option<String>,
handler: &Handler,
is_module: IsModule,
config: Option<Config>,
comments: Option<&'a SingleThreadedComments>,
custom_before_pass: impl FnOnce(&Program) -> P
) -> Result<BuiltInput<impl 'a + Fold>, Error> where
P: 'a + Fold,
parse
: (syntax, target, is_module)
parse
should use comments
.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Options
impl<'de> Deserialize<'de> for Options
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more