Skip to main content

continuity_buffer/
lib.rs

1#![warn(missing_docs)]
2//! Buffer state: a revisioned `Rope`, undo tree, decoration cache, and
3//! per-pane view state.
4//!
5//! All mutation of a [`Buffer`] is the responsibility of its caller-selected
6//! engine owner (single-writer rule). Other threads receive [`RopeSnapshot`]s.
7
8pub mod buffer;
9pub mod checksum;
10pub mod error;
11pub mod id;
12pub mod inverse_op;
13#[cfg(not(target_arch = "wasm32"))]
14pub mod metadata;
15pub mod revision;
16pub(crate) mod selection_clamp;
17pub mod snapshot;
18pub mod undo;
19
20pub use buffer::{derive_title, Buffer};
21pub use checksum::{
22    full_walk_rope, update_for_edit as update_running_checksum, CHECKSUM_VERIFY_INTERVAL,
23    FNV_OFFSET_BASIS,
24};
25pub use error::Error;
26pub use id::{BufferId, UndoGroupId, WindowId};
27pub use inverse_op::compute_inverse_op;
28#[cfg(not(target_arch = "wasm32"))]
29pub use metadata::FileAssociation;
30pub use revision::Revision;
31pub use snapshot::{RopeSnapshot, RopeSnapshotRegistry};
32pub use undo::{EditRecord, UndoGroup, UndoTree};