Skip to main content

Crate continuity_engine

Crate continuity_engine 

Source
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§

AppliedChange
One atomic edit and the information a host persistence adapter needs.
ChangeBatch
A complete synchronous engine mutation, ready for host-side persistence.
DeltaHistory
Bounded delta chains used to project revisioned host data forward.
Engine
Synchronous, storage-neutral editor state machine.
EngineSnapshot
An immutable rope and selection view captured in one engine call.
ReplayedState
Reconstructed state after applying a host event log.
SystemIdGenerator
UUIDv7 identifier source used by the native application.
UndoGroupMeta
Metadata for an undo group newly minted by a mutation.

Enums§

CoalesceKind
Whether a mutation can join the current typing burst.
EngineEvent
Lightweight revisioned events emitted after synchronous operations.
MutationKind
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.