pub trait Diff: Copy {
type Memo: 'static;
// Required methods
fn into_memo(self) -> Self::Memo;
fn diff(self, memo: &mut Self::Memo) -> bool;
}
Expand description
Trait that defines how different values can be diffed at runtime.
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.