Expand description
Synchronous, storage-neutral Continuity editor engine.
The caller selects the thread that owns EngineState. This crate never
creates threads, windows, databases, filesystem state, or host callbacks.
Re-exports§
pub use edit_indent_subtree::all_top_level_subtrees;pub use edit_indent_subtree::indent_subtree;pub use edit_indent_subtree::line_indent;pub use edit_indent_subtree::next_sibling_subtree;pub use edit_indent_subtree::previous_sibling_subtree;pub use edit_indent_subtree::IndentRange;pub use edit_pairs::AutoPairConfig;pub use error::Error;pub use rope_edit_delta_points::EditPoint;pub use rope_edit_delta_points::RopeEditDeltaWithPoints;pub use selection_edit::CaseKind;pub use selection_edit::EmphasisKind;pub use selection_edit::IndentUnit;pub use selection_edit::LineEnding;pub use selection_edit::SelectionEdit;pub use selection_edit::SelectionEditPlan;pub use selection_edit::SortKind;pub use state::EngineState;
Modules§
- edit_
indent_ subtree - Indent-subtree range computation.
- edit_
pairs - Storage-neutral auto-pair planner.
- error
- Errors returned by the synchronous editor engine.
- reconcile_
diff - Minimal splice bounds for full-document host reconciliation.
- rope_
edit_ delta_ points - ε.4 — position-augmented rope edit deltas for the decoration worker’s incremental tree-sitter parse.
- selection_
coalesce - Multi-cursor selection coalescing.
- selection_
edit - Selection-aware edit planning for the synchronous engine.
- state
EngineState: the in-memory map of open buffers.
Structs§
- Applied
Change - One atomic edit and the information a host persistence adapter needs.
- Change
Batch - A complete synchronous engine mutation, ready for host-side persistence.
- Delta
History - Bounded delta chains used to project revisioned host data forward.
- Engine
- Synchronous, storage-neutral editor state machine.
- Engine
Snapshot - An immutable rope and selection view captured in one engine call.
- Replayed
State - Reconstructed state after applying a host event log.
- System
IdGenerator - UUIDv7 identifier source used by the native application.
- Undo
Group Meta - Metadata for an undo group newly minted by a mutation.
Enums§
- Coalesce
Kind - Whether a mutation can join the current typing burst.
- Engine
Event - Lightweight revisioned events emitted after synchronous operations.
- Mutation
Kind - The high-level operation that produced a
ChangeBatch.
Constants§
- COALESCE_
WINDOW_ MS - Continuous typing window.
Traits§
- IdGenerator
- Identifier source used for undo groups.
Functions§
- replay_
change_ batches - Replay ordered batches without creating an engine host, database, or file.