Expand description
Keyed diffing, behind the unordered-delta field type.
A field marked #[delta_struct(field_type = "unordered-delta")] is treated
as a bag of key/value entries and represented as a MapDelta. Entries
are paired up by key, and a pair whose value changed is recorded as a
KeyedDelta — the value’s own Delta rather than a removal followed by
a re-send of the whole thing. Reach for it when a map’s values are
themselves large structs that tend to change a field at a time.
The derive emits calls to diff and apply; you only need this module
directly to inspect or construct a delta by hand.
Structs§
- Keyed
Delta - A change to the value stored under one key.
- MapDelta
- A keyed diff between two collections of entries.
Traits§
- MapEntry
- An entry that splits into a key and a value.