pub trait BuildStep {
// Required methods
fn name(&self) -> &str;
fn hash(&self, hasher: &mut Box<dyn Hasher>);
fn execute(
&mut self,
build: &Build,
result: &mut BuildResult,
) -> Result<(), BuildStepError>;
}Required Methods§
fn name(&self) -> &str
Sourcefn hash(&self, hasher: &mut Box<dyn Hasher>)
fn hash(&self, hasher: &mut Box<dyn Hasher>)
Generate a hash which uniquely identifies the build options
fn execute( &mut self, build: &Build, result: &mut BuildResult, ) -> Result<(), BuildStepError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".