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§
Sourcefn partial_diff(&self, partial: P) -> D
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.