diff

Function diff 

Source
pub fn diff<T: Serialize>(old: &T, new: &T) -> Result<Diff, Error>
Expand description

Compute diff between two values of the same type.

ยงExamples

use diffo::diff;

let old = vec![1, 2, 3];
let new = vec![1, 2, 4];

let d = diff(&old, &new).unwrap();
assert!(!d.is_empty());