Struct debian_packaging::dependency::SingleDependency
source · [−]pub struct SingleDependency {
pub package: String,
pub version_constraint: Option<DependencyVersionConstraint>,
pub architectures: Option<(bool, Vec<String>)>,
}Expand description
A dependency of a package.
Fields
package: StringPackage the dependency is on.
version_constraint: Option<DependencyVersionConstraint>architectures: Option<(bool, Vec<String>)>Implementations
Parse a single package dependency expression into a SingleDependency.
pub fn package_satisfies(
&self,
package: &str,
version: &PackageVersion,
architecture: &str
) -> bool
pub fn package_satisfies(
&self,
package: &str,
version: &PackageVersion,
architecture: &str
) -> bool
Evaluate whether a package satisfies the requirements of this parsed expression.
This takes as arguments the low-level package components needed for checking.
pub fn package_satisfies_virtual(
&self,
package: &str,
provides: Option<&DependencyVersionConstraint>
) -> bool
pub fn package_satisfies_virtual(
&self,
package: &str,
provides: Option<&DependencyVersionConstraint>
) -> bool
Whether a package satisfies a virtual package constraint.
These are processed a bit differently in that architecture doesn’t come into play and version constraints in the source package are optional.
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for SingleDependency
impl Send for SingleDependency
impl Sync for SingleDependency
impl Unpin for SingleDependency
impl UnwindSafe for SingleDependency
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