pub trait Apply {
type Parent;
// Required method
fn apply_to_base(
&self,
source: &mut Self::Parent,
errs: &mut Vec<ApplyError>,
);
}
Expand description
A trait that must implemented by any type that results from a ‘diff’ operation. It allows the (child) ‘diff’ type to be ‘applied’ to the parent type, mutating the parent in place to result in the value which is was originally diffed against.
Generally the user will not need to implement this type, as it will be done by
the derive(Diffable)
macro