Skip to main content

Differ

Trait Differ 

Source
pub trait Differ<T> {
    type Repr;

    // Required methods
    fn diff(&self, a: &T, b: &T) -> Self::Repr;
    fn apply(&self, a: &mut T, b: &Self::Repr);
}
Expand description

A trait allowing a custom struct to handle the diffing implementation for a type

Required Associated Types§

Required Methods§

Source

fn diff(&self, a: &T, b: &T) -> Self::Repr

Source

fn apply(&self, a: &mut T, b: &Self::Repr)

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§