Trait structdiff::StructDiff
source · [−]pub trait StructDiff: PartialEq + Clone {
type Diff;
fn diff(&self, prev: &Self) -> Vec<Self::Diff>;
fn apply_single(&mut self, diff: Self::Diff);
fn apply(self, diffs: Vec<Self::Diff>) -> Self { ... }
fn apply_ref(&self, diffs: Vec<Self::Diff>) -> Self { ... }
fn apply_mut(&mut self, diffs: Vec<Self::Diff>) { ... }
}