pub struct BinaryPackageDependenciesResolution<'file, 'data: 'file> {
pub parts: Vec<BinaryPackageAlternativesResolution<'file, 'data>>,
}Expand description
A collection of BinaryPackageAlternativesResolution satisfying a list of independent constraints.
Fields§
§parts: Vec<BinaryPackageAlternativesResolution<'file, 'data>>Implementations§
Source§impl<'file, 'data: 'file> BinaryPackageDependenciesResolution<'file, 'data>
impl<'file, 'data: 'file> BinaryPackageDependenciesResolution<'file, 'data>
Sourcepub fn packages(
&self,
) -> impl Iterator<Item = &'file BinaryPackageControlFile<'data>> + '_
pub fn packages( &self, ) -> impl Iterator<Item = &'file BinaryPackageControlFile<'data>> + '_
Iterate over all packages referenced by this instance.
This returns all packages satisfying all alternatives in the list of expressions.
There may be duplicates in the output stream.
Sourcepub fn packages_with_expression(
&self,
) -> impl Iterator<Item = (&SingleDependency, &'file BinaryPackageControlFile<'data>)> + '_
pub fn packages_with_expression( &self, ) -> impl Iterator<Item = (&SingleDependency, &'file BinaryPackageControlFile<'data>)> + '_
Iterate over packages while also emitting the expression being satisfied.
Sourcepub fn empty_requirements(
&self,
) -> impl Iterator<Item = &BinaryPackageAlternativesResolution<'file, 'data>>
pub fn empty_requirements( &self, ) -> impl Iterator<Item = &BinaryPackageAlternativesResolution<'file, 'data>>
Iterate over dependency alternates that have no satisfying packages.
Sourcepub fn has_unsatisfied(&self) -> bool
pub fn has_unsatisfied(&self) -> bool
Whether there are unsatisfied dependency constraints in this result.
Returns true if any of the dependency requirements sets are empty.
Trait Implementations§
Source§impl<'file, 'data: 'file> Clone for BinaryPackageDependenciesResolution<'file, 'data>
impl<'file, 'data: 'file> Clone for BinaryPackageDependenciesResolution<'file, 'data>
Source§fn clone(&self) -> BinaryPackageDependenciesResolution<'file, 'data>
fn clone(&self) -> BinaryPackageDependenciesResolution<'file, 'data>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'file, 'data: 'file> Debug for BinaryPackageDependenciesResolution<'file, 'data>
impl<'file, 'data: 'file> Debug for BinaryPackageDependenciesResolution<'file, 'data>
Source§impl<'file, 'data: 'file> Default for BinaryPackageDependenciesResolution<'file, 'data>
impl<'file, 'data: 'file> Default for BinaryPackageDependenciesResolution<'file, 'data>
Source§fn default() -> BinaryPackageDependenciesResolution<'file, 'data>
fn default() -> BinaryPackageDependenciesResolution<'file, 'data>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'file, 'data> Freeze for BinaryPackageDependenciesResolution<'file, 'data>
impl<'file, 'data> RefUnwindSafe for BinaryPackageDependenciesResolution<'file, 'data>
impl<'file, 'data> Send for BinaryPackageDependenciesResolution<'file, 'data>
impl<'file, 'data> Sync for BinaryPackageDependenciesResolution<'file, 'data>
impl<'file, 'data> Unpin for BinaryPackageDependenciesResolution<'file, 'data>
impl<'file, 'data> UnwindSafe for BinaryPackageDependenciesResolution<'file, 'data>
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