pub fn validate_patch(module: &Module, patch: &Patch) -> Result<(), PatchError>
Validate that a patch can be applied to the given module. Returns Ok(()) if valid, Err with details if not.