pub trait TargetAdapter {
// Required methods
fn name(&self) -> &'static str;
fn doctor(
&self,
root: &Path,
config: &Config,
lock: &LockFile,
) -> Result<DiagnosticReport>;
fn build(
&self,
root: &Path,
config: &Config,
lock: &LockFile,
) -> Result<BuildOutput>;
}Required Methods§
fn name(&self) -> &'static str
fn doctor( &self, root: &Path, config: &Config, lock: &LockFile, ) -> Result<DiagnosticReport>
fn build( &self, root: &Path, config: &Config, lock: &LockFile, ) -> Result<BuildOutput>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".