Trait wasm_run::BuildArgs [−][src]
pub trait BuildArgs: Downcast {
fn build_path(&self) -> &PathBuf;
fn profiling(&self) -> bool;
fn default_build_path(&self) -> &PathBuf { ... }
fn target_path(&self) -> &PathBuf { ... }
fn metadata(&self) -> &Metadata { ... }
fn frontend_package(&self) -> &Package { ... }
fn backend_package(&self) -> Option<&Package> { ... }
fn run(self) -> Result<PathBuf>
where
Self: Sized + 'static,
{ ... }
}Expand description
A trait that allows overriding the build command.
Required methods
fn build_path(&self) -> &PathBuf
fn build_path(&self) -> &PathBuf
Build directory output.
Provided methods
fn default_build_path(&self) -> &PathBuf
fn default_build_path(&self) -> &PathBuf
Default path for the build/public directory.
fn target_path(&self) -> &PathBuf
fn target_path(&self) -> &PathBuf
Path to the target directory.
fn frontend_package(&self) -> &Package
fn frontend_package(&self) -> &Package
Package metadata.
fn backend_package(&self) -> Option<&Package>
fn backend_package(&self) -> Option<&Package>
Backend frontend_package metadata.
Implementations
Returns true if the trait object wraps an object of type __T.
Returns a boxed object from a boxed trait object if the underlying object is of type
__T. Returns the original boxed trait if it isn’t.
Returns an Rc-ed object from an Rc-ed trait object if the underlying object is of
type __T. Returns the original Rc-ed trait if it isn’t.
Returns a reference to the object within the trait object if it is of type __T, or
None if it isn’t.
Returns a mutable reference to the object within the trait object if it is of type
__T, or None if it isn’t.