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 copy 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> 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