Skip to main content

DiffValue

Trait DiffValue 

Source
pub trait DiffValue {
    // Required method
    fn diff(&self, after: &Self) -> JsonPatch;
}
Expand description

Computes deterministic patches between JSON values.

Required Methods§

Source

fn diff(&self, after: &Self) -> JsonPatch

Compute a patch that transforms this value into after.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl DiffValue for Value

Source§

fn diff(&self, after: &Self) -> JsonPatch

Implementors§