pub struct ScryptoCompilerBuilder { /* private fields */ }
Implementations§
Source§impl ScryptoCompilerBuilder
impl ScryptoCompilerBuilder
pub fn manifest_path(&mut self, path: impl Into<PathBuf>) -> &mut Self
pub fn target_directory(&mut self, directory: impl Into<PathBuf>) -> &mut Self
pub fn profile(&mut self, profile: Profile) -> &mut Self
pub fn env( &mut self, name: &str, action: EnvironmentVariableAction, ) -> &mut Self
pub fn feature(&mut self, name: &str) -> &mut Self
pub fn no_default_features(&mut self) -> &mut Self
pub fn all_features(&mut self) -> &mut Self
pub fn locked(&mut self) -> &mut Self
pub fn ignore_locked_env_var(&mut self) -> &mut Self
pub fn package(&mut self, name: &str) -> &mut Self
pub fn scrypto_macro_trace(&mut self) -> &mut Self
pub fn log_level(&mut self, log_level: Level) -> &mut Self
pub fn coverage(&mut self) -> &mut Self
pub fn optimize_with_wasm_opt( &mut self, options: Option<OptimizationOptions>, ) -> &mut Self
pub fn custom_options(&mut self, options: &[&str]) -> &mut Self
pub fn debug(&mut self, verbose: bool) -> &mut Self
pub fn build(&mut self) -> Result<ScryptoCompiler, ScryptoCompilerError>
pub fn compile(&mut self) -> Result<Vec<BuildArtifacts>, ScryptoCompilerError>
pub fn compile_with_stdio<T: Into<Stdio>>( &mut self, stdin: Option<T>, stdout: Option<T>, stderr: Option<T>, ) -> Result<Vec<BuildArtifacts>, ScryptoCompilerError>
Trait Implementations§
Source§impl Default for ScryptoCompilerBuilder
impl Default for ScryptoCompilerBuilder
Source§fn default() -> ScryptoCompilerBuilder
fn default() -> ScryptoCompilerBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ScryptoCompilerBuilder
impl RefUnwindSafe for ScryptoCompilerBuilder
impl Send for ScryptoCompilerBuilder
impl Sync for ScryptoCompilerBuilder
impl Unpin for ScryptoCompilerBuilder
impl UnwindSafe for ScryptoCompilerBuilder
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
Source§impl<T, U> ContextualTryInto<U> for Twhere
U: ContextualTryFrom<T>,
impl<T, U> ContextualTryInto<U> for Twhere
U: ContextualTryFrom<T>,
type Error = <U as ContextualTryFrom<T>>::Error
type Context = <U as ContextualTryFrom<T>>::Context
fn contextual_try_into( self, context: &<U as ContextualTryFrom<T>>::Context, ) -> Result<U, <U as ContextualTryFrom<T>>::Error>
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.