pub trait SourceCreate {
// Required method
fn create(
&self,
name: PkgName,
old_name: Option<PkgName>,
home_dir: PathBuf,
work_dir: PathBuf,
printer: Arc<dyn Print + Send + Sync>,
) -> Option<Box<dyn Source + Send + Sync>>;
}Expand description
A trait of source factory.
The source factory creates source for the specified package.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".