Expand description
Pure data types shared across the hashline parser, applier, and patcher. No filesystem, agent runtime, or schema library references — keep it pure.
Structs§
- Anchor
- A line-number anchor (1-indexed).
- Apply
Result - Result of applying a parsed set of edits to a text body.
- Block
Resolution - One block anchor resolution (block-ops feature — future).
- Block
Resolver Request - Request handed to a block resolver (block-ops feature — future).
- Block
Span - Resolved 1-indexed inclusive line span of a
replace_block N:target. (block-ops feature — future) - Compact
Diff Options - Optional knobs for compact diff preview.
- Compact
Diff Preview - Result of
crate::diff_preview::build_compact_diff_preview. - Parsed
Range - A parsed
start.=endline range (1-indexed, inclusive). - Split
Options - Optional hints for
crate::parser::split_patch_input.
Enums§
- Block
Mode - Block operations mode (future: block-ops feature).
- BlockOp
- Kind of block operation to perform (block-ops feature — future).
- Cursor
- Where an
insertedit should land relative to existing content. - Edit
- A single low-level edit produced by the parser and consumed by the applier.
- Insert
Mode - Insert mode for replacement lowering (SWAP lowers to Insert::Replacement).
Type Aliases§
- Block
Resolver - Resolves a block anchor to a line span (block-ops feature — future).