pub struct DependencyResolver { /* private fields */ }Expand description
A dependency resolver that finds compatible package combinations
Implementations§
Source§impl DependencyResolver
impl DependencyResolver
Sourcepub fn new(
repository_manager: Arc<RepositoryManager>,
config: SolverConfig,
) -> Self
pub fn new( repository_manager: Arc<RepositoryManager>, config: SolverConfig, ) -> Self
Create a new dependency resolver
Sourcepub async fn resolve(
&mut self,
requirements: Vec<Requirement>,
) -> Result<ResolutionResult, RezCoreError>
pub async fn resolve( &mut self, requirements: Vec<Requirement>, ) -> Result<ResolutionResult, RezCoreError>
Resolve a set of requirements into a consistent package set
Auto Trait Implementations§
impl Freeze for DependencyResolver
impl !RefUnwindSafe for DependencyResolver
impl Send for DependencyResolver
impl Sync for DependencyResolver
impl Unpin for DependencyResolver
impl !UnwindSafe for DependencyResolver
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more