pub struct PackageDiff<'a> {
pub changed: BTreeMap<&'a SummaryId, SummaryDiffStatus<'a>>,
pub unchanged: BTreeMap<&'a str, Vec<UnchangedInfo<'a>>>,
}
Expand description
A diff from a particular section of a summary.
Fields§
§changed: BTreeMap<&'a SummaryId, SummaryDiffStatus<'a>>
Changed packages.
unchanged: BTreeMap<&'a str, Vec<UnchangedInfo<'a>>>
Unchanged packages, keyed by name.
Implementations§
source§impl<'a> PackageDiff<'a>
impl<'a> PackageDiff<'a>
sourcepub fn new(old: &'a PackageMap, new: &'a PackageMap) -> Self
pub fn new(old: &'a PackageMap, new: &'a PackageMap) -> Self
Constructs a new PackageDiff
from a pair of PackageMap
instances.
sourcepub fn is_unchanged(&self) -> bool
pub fn is_unchanged(&self) -> bool
Returns true if there are no changes in this diff.
Trait Implementations§
source§impl<'a> Clone for PackageDiff<'a>
impl<'a> Clone for PackageDiff<'a>
source§fn clone(&self) -> PackageDiff<'a>
fn clone(&self) -> PackageDiff<'a>
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<'a> Debug for PackageDiff<'a>
impl<'a> Debug for PackageDiff<'a>
source§impl<'a> PartialEq for PackageDiff<'a>
impl<'a> PartialEq for PackageDiff<'a>
source§impl<'a> Serialize for PackageDiff<'a>
impl<'a> Serialize for PackageDiff<'a>
impl<'a> Eq for PackageDiff<'a>
impl<'a> StructuralPartialEq for PackageDiff<'a>
Auto Trait Implementations§
impl<'a> Freeze for PackageDiff<'a>
impl<'a> RefUnwindSafe for PackageDiff<'a>
impl<'a> Send for PackageDiff<'a>
impl<'a> Sync for PackageDiff<'a>
impl<'a> Unpin for PackageDiff<'a>
impl<'a> UnwindSafe for PackageDiff<'a>
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
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more