Module diff

Module diff 

Source
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§

DiffStore2
Keep two diffs for the same set of entities
DiffStore3
Keep three diffs for the same set of entities
DiffStore4
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 in diffs. When the actual values are changed and we want a new store with new values, we use this function.
diff_store
Compare records with actuals 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 in diffs. When the actual values are changed and we want to update the store, we use this function.

Type Aliases§

DiffStore
Keeping track of differences between two stores of the same type.