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§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