pub struct PackageDiff {
removed: Vec<PackageId>,
added: Vec<PackageId>,
unchanged: Vec<PackageId>,
}
Expand description
All resolved versions of a package name within a SourceId
Fields§
§removed: Vec<PackageId>
§added: Vec<PackageId>
§unchanged: Vec<PackageId>
Implementations§
Source§impl PackageDiff
impl PackageDiff
pub fn new(resolve: &Resolve) -> impl Iterator<Item = Self>
pub fn diff( previous_resolve: &Resolve, resolve: &Resolve, ) -> impl Iterator<Item = Self>
fn key(dep: PackageId) -> (&'static str, SourceId)
Sourcepub fn change(&self) -> Option<(PackageId, PackageId)>
pub fn change(&self) -> Option<(PackageId, PackageId)>
Guess if a package upgraded/downgraded
All PackageDiff
knows is that entries were added/removed within Resolve
.
A package could be added or removed because of dependencies from other packages
which makes it hard to definitively say “X was upgrade to N”.
Trait Implementations§
Source§impl Clone for PackageDiff
impl Clone for PackageDiff
Source§fn clone(&self) -> PackageDiff
fn clone(&self) -> PackageDiff
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 PackageDiff
impl Debug for PackageDiff
Source§impl Default for PackageDiff
impl Default for PackageDiff
Source§fn default() -> PackageDiff
fn default() -> PackageDiff
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PackageDiff
impl RefUnwindSafe for PackageDiff
impl Send for PackageDiff
impl Sync for PackageDiff
impl Unpin for PackageDiff
impl UnwindSafe for PackageDiff
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn 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>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 72 bytes