Skip to main content

apply_patch

Function apply_patch 

Source
pub fn apply_patch(
    module: &Module,
    patch: &Patch,
) -> Result<PatchResult, PatchError>
Expand description

Apply a patch to a module, producing a new module.

Validates the patch first, then applies operations sequentially. Returns the new module, its version hash, and impact analysis.