PartialDiff

Trait PartialDiff 

Source
pub trait PartialDiff<P, D: Diff + Into<P>> {
    // Required method
    fn partial_diff(&self, partial: P) -> D;

    // Provided method
    fn minimize_partial(&self, partial: P) -> P { ... }
}
Expand description

This is implemented on the “Full” struct if #[partial(diff)] is specified. Requires all fields on the “Full” struct to implement PartialEq

Required Methods§

Source

fn partial_diff(&self, partial: P) -> D

Diffs a partial against self, returning a partial where all “Some” fields are not equal to the corresponding field on Self.

Provided Methods§

Source

fn minimize_partial(&self, partial: P) -> P

Implementors§