Skip to main content

apply_patch

Function apply_patch 

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

Apply a patch to a value

Convenience function that calls value.apply_patch(patch).

ยงErrors

Returns an error if any operation fails.