Struct debian_packaging::dependency::DependencyList
source · pub struct DependencyList { /* private fields */ }Expand description
Represents an ordered list of dependencies, delimited by commas (,).
Implementations§
source§impl DependencyList
impl DependencyList
sourcepub fn parse(s: &str) -> Result<Self>
pub fn parse(s: &str) -> Result<Self>
Parse a dependency list from a string.
A dependency list is a comma-delimited list of expressions. Each expression is a
| delimited list of expressions of the form
package (version_relationship version) [arch].
sourcepub fn package_satisfies(
&self,
package: &str,
version: &PackageVersion,
arch: &str
) -> bool
pub fn package_satisfies( &self, package: &str, version: &PackageVersion, arch: &str ) -> bool
Evaluate whether a package satisfies at least one expression in this list.
sourcepub fn requirements(&self) -> impl Iterator<Item = &DependencyVariants>
pub fn requirements(&self) -> impl Iterator<Item = &DependencyVariants>
Obtain the individual requirements constituting this list of dependencies.
Each requirement is itself a set of expressions to match against. The length of this set is commonly 1.
Trait Implementations§
source§impl Clone for DependencyList
impl Clone for DependencyList
source§fn clone(&self) -> DependencyList
fn clone(&self) -> DependencyList
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 moresource§impl Debug for DependencyList
impl Debug for DependencyList
source§impl Display for DependencyList
impl Display for DependencyList
source§impl PartialEq for DependencyList
impl PartialEq for DependencyList
source§fn eq(&self, other: &DependencyList) -> bool
fn eq(&self, other: &DependencyList) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for DependencyList
Auto Trait Implementations§
impl RefUnwindSafe for DependencyList
impl Send for DependencyList
impl Sync for DependencyList
impl Unpin for DependencyList
impl UnwindSafe for DependencyList
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