Struct guppy::graph::summaries::diff::PackageDiff [−][src]
pub struct PackageDiff<'a> {
pub changed: BTreeMap<&'a SummaryId, SummaryDiffStatus<'a>>,
pub unchanged: BTreeMap<&'a str, Vec<(&'a Version, &'a SummarySource, &'a PackageInfo), Global>>,
}
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<(&'a Version, &'a SummarySource, &'a PackageInfo), Global>>
Unchanged packages, keyed by name.
Implementations
pub fn new(
old: &'a BTreeMap<SummaryId, PackageInfo>,
new: &'a BTreeMap<SummaryId, PackageInfo>
) -> PackageDiff<'a>
pub fn new(
old: &'a BTreeMap<SummaryId, PackageInfo>,
new: &'a BTreeMap<SummaryId, PackageInfo>
) -> PackageDiff<'a>
Constructs a new PackageDiff
from a pair of PackageMap
instances.
Returns true if there are no changes in this diff.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
pub fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
pub fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
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
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.