Struct debian_packaging::dependency_resolution::BinaryPackageSingleDependencyResolution [−][src]
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: SingleDependencycandidates: Vec<&'file BinaryPackageControlFile<'data>>Implementations
Iterate over packages satisfying this dependency expression.
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.
pub 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
Auto 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> where
'data: 'file,
impl<'file, 'data> UnwindSafe for BinaryPackageSingleDependencyResolution<'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
