Skip to main content

diff_values

Function diff_values 

Source
pub fn diff_values(
    old: &ValueWord,
    new: &ValueWord,
    schemas: &TypeSchemaRegistry,
) -> Delta
Expand description

Compute the delta between two values.

For TypedObjects of the same schema, produces per-field diffs. For arrays of the same length, produces per-element diffs. For all other cases, treats the entire value as changed if different.