View Source Patchwork.Patch protocol (Patchwork v0.1.0)

Summary

Functions

This is the type of the patch struct returned by diff. E.g. %Patchwork.Patch.Map{}

Types

@type patch_type() :: any()
@type t() :: term()

Functions

@spec apply(t(), patch_type()) ::
  {:ok, t()} | {:error, Patchwork.Patch.PatchError.t()}
@spec diff(t(), t()) :: patch_type()

This is the type of the patch struct returned by diff. E.g. %Patchwork.Patch.Map{}