Struct debian_packaging::dependency::DependencyList
source · [−]pub struct DependencyList { /* private fields */ }Expand description
Represents an ordered list of dependencies, delimited by commas (,).
Implementations
sourceimpl 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
sourceimpl Clone for DependencyList
impl Clone for DependencyList
sourcefn clone(&self) -> DependencyList
fn clone(&self) -> DependencyList
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for DependencyList
impl Debug for DependencyList
sourceimpl Display for DependencyList
impl Display for DependencyList
sourceimpl PartialEq<DependencyList> for DependencyList
impl PartialEq<DependencyList> for DependencyList
sourcefn 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 ==. Read more
sourcefn ne(&self, other: &DependencyList) -> bool
fn ne(&self, other: &DependencyList) -> bool
This method tests for !=.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more