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§
Sourcefn resolve(&mut self, package: &RpRequiredPackage) -> Result<Vec<Resolved>>
fn resolve(&mut self, package: &RpRequiredPackage) -> Result<Vec<Resolved>>
Resolve the specified request.
Sourcefn resolve_by_prefix(
&mut self,
package: &RpPackage,
) -> Result<Vec<ResolvedByPrefix>>
fn resolve_by_prefix( &mut self, package: &RpPackage, ) -> Result<Vec<ResolvedByPrefix>>
Resolve by prefix.