pub struct TranspileConfigBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> TranspileConfigBuilder<S>
impl<S: State> TranspileConfigBuilder<S>
Sourcepub fn build(self) -> TranspileConfigwhere
S: IsComplete,
pub fn build(self) -> TranspileConfigwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn opts(self, value: TranspileOpts) -> TranspileConfigBuilder<SetOpts<S>>where
S::Opts: IsUnset,
pub fn opts(self, value: TranspileOpts) -> TranspileConfigBuilder<SetOpts<S>>where
S::Opts: IsUnset,
Optional (Some / Option setters).
Default: <TranspileOpts as Default>::default().
Options shared with transpile and generate_types.
Sourcepub fn maybe_opts(
self,
value: Option<TranspileOpts>,
) -> TranspileConfigBuilder<SetOpts<S>>where
S::Opts: IsUnset,
pub fn maybe_opts(
self,
value: Option<TranspileOpts>,
) -> TranspileConfigBuilder<SetOpts<S>>where
S::Opts: IsUnset,
Optional (Some / Option setters).
Default: <TranspileOpts as Default>::default().
Options shared with transpile and generate_types.
Sourcepub fn cm_runtime_es_module(
self,
value: String,
) -> TranspileConfigBuilder<SetCmRuntimeEsModule<S>>where
S::CmRuntimeEsModule: IsUnset,
pub fn cm_runtime_es_module(
self,
value: String,
) -> TranspileConfigBuilder<SetCmRuntimeEsModule<S>>where
S::CmRuntimeEsModule: IsUnset,
Sourcepub fn maybe_cm_runtime_es_module(
self,
value: Option<String>,
) -> TranspileConfigBuilder<SetCmRuntimeEsModule<S>>where
S::CmRuntimeEsModule: IsUnset,
pub fn maybe_cm_runtime_es_module(
self,
value: Option<String>,
) -> TranspileConfigBuilder<SetCmRuntimeEsModule<S>>where
S::CmRuntimeEsModule: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for TranspileConfigBuilder<S>
impl<S> RefUnwindSafe for TranspileConfigBuilder<S>
impl<S> Send for TranspileConfigBuilder<S>
impl<S> Sync for TranspileConfigBuilder<S>
impl<S> Unpin for TranspileConfigBuilder<S>
impl<S> UnsafeUnpin for TranspileConfigBuilder<S>
impl<S> UnwindSafe for TranspileConfigBuilder<S>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more