Trait mergable::Mergable[][src]

pub trait Mergable: Sized {
    type Diff;
    fn diff(&self, that: &Self) -> Self::Diff;
fn apply(&mut self, diff: Self::Diff) -> Result<(), ApplyError>; fn merge(&mut self, other: Self) { ... } }

Associated Types

Required methods

Produce a diff.

  • The result will contain all of the information in self that isn’t present in that.

Provided methods

Implementors