Trait Resolver

Source
pub trait Resolver {
    // Required methods
    fn resolve(&mut self, package: &RpRequiredPackage) -> Result<Vec<Resolved>>;
    fn resolve_by_prefix(
        &mut self,
        package: &RpPackage,
    ) -> Result<Vec<ResolvedByPrefix>>;
}
Expand description

Trait that translates a required package into a set of versions and objects.

Required Methods§

Source

fn resolve(&mut self, package: &RpRequiredPackage) -> Result<Vec<Resolved>>

Resolve the specified request.

Source

fn resolve_by_prefix( &mut self, package: &RpPackage, ) -> Result<Vec<ResolvedByPrefix>>

Resolve by prefix.

Implementors§