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§
- Patch
Result - Result of a successfully applied patch (RFC-015 §7).
- Source
Patch - A Rust-approved mutation of a byte range in canonical text (RFC-015 §7).
Enums§
- Patch
Error - Structured patch rejection reasons (requirements §23.3).
- Patch
Origin - Where a patch originated (external design §23.12).
Functions§
- apply_
patch - Validates and applies
patchtotext, which must be at revisioncurrent_revision. On success the caller increments the document revision and triggers a full reparse.