pub struct ShaConflictDetector { /* private fields */ }Expand description
SHA-based conflict detector.
This detector groups requirements by resource and checks if different SHAs are required for the same resource. Only reports conflicts when SHAs actually differ, regardless of the version strings used.
Implementations§
Source§impl ShaConflictDetector
impl ShaConflictDetector
Sourcepub fn add_requirement(&mut self, requirement: ResolvedRequirement)
pub fn add_requirement(&mut self, requirement: ResolvedRequirement)
Add a resolved requirement to the detector.
Sourcepub fn detect_conflicts(&self) -> Result<Vec<ShaConflict>>
pub fn detect_conflicts(&self) -> Result<Vec<ShaConflict>>
Detect conflicts after all requirements have been added.
Returns a list of conflicts where different SHAs are required for the same resource.
Sourcepub fn get_requirements(
&self,
source: &str,
path: &str,
) -> Option<&[ResolvedRequirement]>
pub fn get_requirements( &self, source: &str, path: &str, ) -> Option<&[ResolvedRequirement]>
Get all requirements for a specific resource.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ShaConflictDetector
impl RefUnwindSafe for ShaConflictDetector
impl Send for ShaConflictDetector
impl Sync for ShaConflictDetector
impl Unpin for ShaConflictDetector
impl UnwindSafe for ShaConflictDetector
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