pub trait BuildSource {
// Required methods
fn name(&self) -> &str;
fn hash(&self, target: &mut Box<dyn Hasher>);
fn setup(&mut self) -> Result<(), BuildStepError>;
fn local_directory(&self) -> &PathBuf;
fn cleanup(&mut self);
}Required Methods§
Sourcefn hash(&self, target: &mut Box<dyn Hasher>)
fn hash(&self, target: &mut Box<dyn Hasher>)
Generate a unique hash which identifies the source and possible changes
fn setup(&mut self) -> Result<(), BuildStepError>
fn local_directory(&self) -> &PathBuf
fn cleanup(&mut self)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".