pub trait Diff: Sized {
type Diff: DiffInfo;
// Required method
fn diff(old: &Self, new: &Self) -> Self::Diff;
}Expand description
Compute a structural diff between two values of the same type.
The diff type Self::Diff captures what changed between old and new.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.