Skip to main content

Module patch

Module patch 

Source
Expand description

The SourcePatch engine (RFC-015): the only path through which canonical Markdown text is mutated.

Every patch is revision-checked and UTF-8-boundary-validated before application, making invalid mutations impossible by construction (reliability rule REL-103).

Structs§

PatchResult
Result of a successfully applied patch (RFC-015 §7).
SourcePatch
A Rust-approved mutation of a byte range in canonical text (RFC-015 §7).

Enums§

PatchError
Structured patch rejection reasons (requirements §23.3).
PatchOrigin
Where a patch originated (external design §23.12).

Functions§

apply_patch
Validates and applies patch to text, which must be at revision current_revision. On success the caller increments the document revision and triggers a full reparse.