pub struct BinaryPackageAlternativesResolution<'file, 'data: 'file> {
pub alternatives: Vec<BinaryPackageSingleDependencyResolution<'file, 'data>>,
}Expand description
A collection of BinaryPackageSingleDependencyResolution satisfying a set of alternative expressions.
Fields
alternatives: Vec<BinaryPackageSingleDependencyResolution<'file, 'data>>Implementations
Whether no packages satisfy constraints from this list of dependency expressions.
Returns true if the set of dependency expressions is empty or if all expressions have empty packages lists.
Obtain alternative dependency constraints for this set.
Iterate over all packages in this set of alternatives.
There may be duplicates in the output stream.
pub 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.
Prune empty alternatives from this data structure.
Dependency expressions not having any satisfying packages will be removed.
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl<'file, 'data> RefUnwindSafe for BinaryPackageAlternativesResolution<'file, 'data>
impl<'file, 'data> Send for BinaryPackageAlternativesResolution<'file, 'data>
impl<'file, 'data> Sync for BinaryPackageAlternativesResolution<'file, 'data>
impl<'file, 'data> Unpin for BinaryPackageAlternativesResolution<'file, 'data> where
'data: 'file,
impl<'file, 'data> UnwindSafe for BinaryPackageAlternativesResolution<'file, 'data>
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more