pub struct ConflictService;Expand description
Conflict detection service.
This service provides high-level methods for detecting version conflicts and path conflicts in dependencies.
Implementations§
Source§impl ConflictService
impl ConflictService
Sourcepub fn detect_version_conflicts(
&mut self,
dependencies: &HashMap<DependencyKey, DetailedDependency>,
) -> Result<Vec<VersionConflict>>
pub fn detect_version_conflicts( &mut self, dependencies: &HashMap<DependencyKey, DetailedDependency>, ) -> Result<Vec<VersionConflict>>
Sourcepub fn detect_path_conflicts(
dependencies: &HashMap<DependencyKey, DetailedDependency>,
) -> Vec<(String, Vec<String>)>
pub fn detect_path_conflicts( dependencies: &HashMap<DependencyKey, DetailedDependency>, ) -> Vec<(String, Vec<String>)>
Sourcepub fn has_conflict(
&mut self,
dependencies: &HashMap<DependencyKey, DetailedDependency>,
new_dep: &ResourceDependency,
new_key: &DependencyKey,
) -> bool
pub fn has_conflict( &mut self, dependencies: &HashMap<DependencyKey, DetailedDependency>, new_dep: &ResourceDependency, new_key: &DependencyKey, ) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConflictService
impl RefUnwindSafe for ConflictService
impl Send for ConflictService
impl Sync for ConflictService
impl Unpin for ConflictService
impl UnwindSafe for ConflictService
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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