escriba_buffer/lib.rs
1//! `escriba-buffer` — rope-backed text buffer.
2//!
3//! One [`Buffer`] owns a ropey `Rope`, knows its file path, detected line
4//! ending, encoding, and a simple undo tree. Exposes position↔char
5//! conversion (UTF-8 safe) and primitive [`escriba_core::Edit`] application.
6
7extern crate self as escriba_buffer;
8
9pub mod buffer;
10pub mod encoding;
11pub mod error;
12pub mod line_ending;
13pub mod undo;
14
15pub use buffer::{Buffer, BufferSet, BufferSummary};
16pub use encoding::Encoding;
17pub use error::BufferError;
18pub use line_ending::LineEnding;
19pub use undo::{UndoEntry, UndoTree};