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