Skip to main content

generic_apply_patch

Function generic_apply_patch 

Source
pub fn generic_apply_patch<V>(
    value: &mut V,
    patch: &GenericPatch<V>,
) -> Result<(), PatchError>
where V: Patchable,
Expand description

Apply a patch to a value

Convenience function that calls value.apply_patch(patch).

ยงErrors

Returns an error if any operation fails.