Expand description
Verified, source-preserving edits for YAML documents built on ayaml’s public API.
Every edit returned by this crate is reparsed and checked against both the expected
Value tree and the Event stream before it is returned.
Constructs whose source-preserving edit rules are not yet proven exact — anchors, aliases,
tags, block scalars, multiple documents, merge-key expansion, and ambiguous comment placement
— are refused conservatively.
Structs§
- Edit
Error - An error returned when an edit cannot be constructed or verified.
- Edit
Options - Options controlling how documents are parsed and verified during editing.
- Masked
Edit Error - A view of an
EditErrorwhoseDisplayandDebugforms exclude all YAML document text. - Text
Edit - A single byte-range replacement against a source string.
- Verified
Edit - The verified result of one or more YAML edits.
Enums§
- Edit
Error Kind - Coarse category of an
EditError. - EditOp
- One edit operation for
apply_batch/apply_batch_with.
Functions§
- apply_
batch - Apply a batch of
EditOps atomically and verify the resulting document. - apply_
batch_ with - Apply a batch of
EditOps atomically using explicitEditOptions. - apply_
edits - Apply sorted, non-overlapping
TextEdits toinput. - remove_
entry - Remove the block entry at
path, verifying both the resulting value tree and event stream before returning. - remove_
entry_ with - Remove the block entry at
pathusing explicitEditOptions. - replace_
scalar - Replace the scalar at
pathwithreplacement, verifying both the resulting value tree and event stream before returning. - replace_
scalar_ with - Replace the scalar at
pathwithreplacementusing explicitEditOptions.