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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§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