Skip to main content

generic_patch

Function generic_patch 

Source
pub fn generic_patch<T>(old: &T, diff: &<T::Repr as Diff>::Diff) -> T
where T: GenericRepr + Clone, T::Repr: Patch,
Expand description

Apply a structural diff to transform a value via its generic representation.