Skip to main content

Module model

Module model 

Source
Expand description

The frontend-neutral editor model and its structural operations.

Model is generic over a Backend: it builds path-addressed EditOps, applies them through the backend, and re-derives its view from Backend::to_value after each change. It owns no editor, no format, no filesystem, and no terminal — the backend owns the document; the embedder owns file I/O and rendering.

Structs§

Model

Enums§

Mode
Interaction mode: normal navigation, or editing a scalar’s text.
ViewMode
Which projection the frontend is navigating: the whole-document tree, or one page at a time.