Source

Trait Source 

Source
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,
    ) { ... }
}

Required Methods§

Source

fn install(&self, dependency: &Dependency, path: &Path) -> Result<()>

Provided Methods§

Source

fn installed(&self, dependency: &Dependency, destination: &Path) -> bool

Source

fn update_resolver( &self, resolver: &mut Resolver, dependency: &Dependency, destination: &Path, )

Trait Implementations§

Source§

impl Clone for Box<dyn Source>

Source§

fn clone(&self) -> Box<dyn Source>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Implementors§