pub enum Dependencies<P: Package, VS: VersionSet, M: Eq + Clone + Debug + Display> {
Unavailable(M),
Available(DependencyConstraints<P, VS>),
}Expand description
An enum used by DependencyProvider that holds information about package dependencies. For each Package there is a set of versions allowed as a dependency.
Variants§
Package dependencies are unavailable with the reason why they are missing.
Available(DependencyConstraints<P, VS>)
Container for all available package versions.
Trait Implementations§
Source§impl<P: Clone + Package, VS: Clone + VersionSet, M: Clone + Eq + Clone + Debug + Display> Clone for Dependencies<P, VS, M>
impl<P: Clone + Package, VS: Clone + VersionSet, M: Clone + Eq + Clone + Debug + Display> Clone for Dependencies<P, VS, M>
Source§fn clone(&self) -> Dependencies<P, VS, M>
fn clone(&self) -> Dependencies<P, VS, M>
Returns a duplicate 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<P, VS, M> Freeze for Dependencies<P, VS, M>where
M: Freeze,
impl<P, VS, M> RefUnwindSafe for Dependencies<P, VS, M>
impl<P, VS, M> Send for Dependencies<P, VS, M>
impl<P, VS, M> Sync for Dependencies<P, VS, M>
impl<P, VS, M> Unpin for Dependencies<P, VS, M>
impl<P, VS, M> UnwindSafe for Dependencies<P, VS, M>
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