pub enum DiffItem<'a, K, V> {
    Add(&'a K, &'a V),
    Update {
        old: (&'a K, &'a V),
        new: (&'a K, &'a V),
    },
    Remove(&'a K, &'a V),
}
Expand description

A description of a difference between two ordered maps.

Variants

Add(&'a K, &'a V)

This value has been added to the new map.

Update

Fields

old: (&'a K, &'a V)

The old value.

new: (&'a K, &'a V)

The new value.

This value has been changed between the two maps.

Remove(&'a K, &'a V)

This value has been removed from the new map.

Trait Implementations

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.