Trait Changes

Source
pub trait Changes {
    type Replace;
    type Patch;

    // Required method
    fn diff(
        &self,
        new: &Self,
    ) -> Result<Diff<Self::Replace, Self::Patch>, DiffError>;
}

Required Associated Types§

Required Methods§

Source

fn diff( &self, new: &Self, ) -> Result<Diff<Self::Replace, Self::Patch>, DiffError>

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.

Implementations on Foreign Types§

Source§

impl Changes for Value

Source§

type Replace = Value

Source§

type Patch = PatchObject

Source§

fn diff(&self, new: &Self) -> Result<Diff<Value, PatchObject>, DiffError>

Implementors§