pub struct BinaryPackageSingleDependencyResolution<'file, 'data: 'file> {
pub expression: SingleDependency,
pub candidates: Vec<&'file BinaryPackageControlFile<'data>>,
}Expand description
Holds BinaryPackageControlFile references satisfying a single dependency expression.
Fields§
§expression: SingleDependency§candidates: Vec<&'file BinaryPackageControlFile<'data>>Implementations§
Source§impl<'file, 'data: 'file> BinaryPackageSingleDependencyResolution<'file, 'data>
impl<'file, 'data: 'file> BinaryPackageSingleDependencyResolution<'file, 'data>
Sourcepub fn packages(
&self,
) -> impl Iterator<Item = &'file BinaryPackageControlFile<'data>> + '_
pub fn packages( &self, ) -> impl Iterator<Item = &'file BinaryPackageControlFile<'data>> + '_
Iterate over packages satisfying this dependency expression.
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 group_by_package_name(
&self,
) -> HashMap<&'file str, Vec<&'file BinaryPackageControlFile<'data>>>
pub fn group_by_package_name( &self, ) -> HashMap<&'file str, Vec<&'file BinaryPackageControlFile<'data>>>
Obtain all candidates in this data structure, indexed by package name.
Trait Implementations§
Source§impl<'file, 'data: 'file> Clone for BinaryPackageSingleDependencyResolution<'file, 'data>
impl<'file, 'data: 'file> Clone for BinaryPackageSingleDependencyResolution<'file, 'data>
Source§fn clone(&self) -> BinaryPackageSingleDependencyResolution<'file, 'data>
fn clone(&self) -> BinaryPackageSingleDependencyResolution<'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 moreAuto Trait Implementations§
impl<'file, 'data> Freeze for BinaryPackageSingleDependencyResolution<'file, 'data>
impl<'file, 'data> RefUnwindSafe for BinaryPackageSingleDependencyResolution<'file, 'data>
impl<'file, 'data> Send for BinaryPackageSingleDependencyResolution<'file, 'data>
impl<'file, 'data> Sync for BinaryPackageSingleDependencyResolution<'file, 'data>
impl<'file, 'data> Unpin for BinaryPackageSingleDependencyResolution<'file, 'data>
impl<'file, 'data> UnwindSafe for BinaryPackageSingleDependencyResolution<'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