pub trait Source: SourceClone {
// Required method
fn install(&self, dependency: &Dependency, path: &Path) -> Result<()>;
// Provided methods
fn installed(&self, dependency: &Dependency, destination: &Path) -> bool { ... }
fn update_resolver(
&self,
resolver: &mut Resolver,
dependency: &Dependency,
destination: &Path,
) { ... }
}