Skip to main content

Module types

Module types 

Source
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).
ApplyResult
Result of applying a parsed set of edits to a text body.
BlockResolution
One block anchor resolution (block-ops feature — future).
BlockResolverRequest
Request handed to a block resolver (block-ops feature — future).
BlockSpan
Resolved 1-indexed inclusive line span of a replace_block N: target. (block-ops feature — future)
CompactDiffOptions
Optional knobs for compact diff preview.
CompactDiffPreview
Result of crate::diff_preview::build_compact_diff_preview.
ParsedRange
A parsed start.=end line range (1-indexed, inclusive).
SplitOptions
Optional hints for crate::parser::split_patch_input.

Enums§

BlockMode
Block operations mode (future: block-ops feature).
BlockOp
Kind of block operation to perform (block-ops feature — future).
Cursor
Where an insert edit should land relative to existing content.
Edit
A single low-level edit produced by the parser and consumed by the applier.
InsertMode
Insert mode for replacement lowering (SWAP lowers to Insert::Replacement).

Type Aliases§

BlockResolver
Resolves a block anchor to a line span (block-ops feature — future).