Expand description
Compare two stores and find out which values are different.
Diff keeps possible differences between two stores of the same type. DiffStore keeps the diffs for all entities in a stores.
Two Storable types are compared and the result is a Diff of the same type. These diffs make up a store, which is a DiffStore.
Structs§
- Diff
Store2 - Keep two diffs for the same set of entities
- Diff
Store3 - Keep three diffs for the same set of entities
- Diff
Store4 - Keep four diffs for the same set of entities
Enums§
- Diff
- Shows which information is identical, missing or different in diff calculations.
Traits§
- Diffable
- Used to find out if record and actual are different for type T
Functions§
- apply_
diff - Create a new store from
records
and with the changed values indiffs
. When the actual values are changed and we want a new store with new values, we use this function. - diff_
store - Compare
records
withactuals
and return the missing or changed values. This is used find out when something changes in the workspace. - update_
with_ actual - Update
records
loaded from store with the changed values indiffs
. When the actual values are changed and we want to update the store, we use this function.
Type Aliases§
- Diff
Store - Keeping track of differences between two stores of the same type.