pub struct PackageDiff {
pub name: String,
pub version: Difference<String>,
pub source: Difference<String>,
pub checksum: Difference<String>,
pub dependencies: Vec<Difference<String>>,
}
Fields§
§name: String
§version: Difference<String>
§source: Difference<String>
§checksum: Difference<String>
§dependencies: Vec<Difference<String>>
Implementations§
Source§impl PackageDiff
impl PackageDiff
pub fn diff(a: Package, b: Package) -> PackageDiff
pub fn added(p: Package) -> PackageDiff
pub fn removed(p: Package) -> PackageDiff
pub fn is_equal_or_empty(&self) -> bool
pub fn pretty_print_package(&self, verbose: bool)
Trait Implementations§
Source§impl Debug for PackageDiff
impl Debug for PackageDiff
Source§impl Ord for PackageDiff
impl Ord for PackageDiff
Source§impl PartialEq for PackageDiff
impl PartialEq for PackageDiff
Source§impl PartialOrd for PackageDiff
impl PartialOrd for PackageDiff
impl Eq for PackageDiff
impl StructuralPartialEq for PackageDiff
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.