redox_core/buffer/mod.rs
1//! Ropey-backed text buffer module.
2//!
3//! This module is split across multiple files to keep each concern small:
4//! - `pos.rs`: logical positions and selections
5//! - `edit.rs`: edit representation (char-indexed)
6//! - `text_buffer.rs`: the `TextBuffer` implementation (backed by `ropey::Rope`)
7//! - `util.rs`: internal helper functions
8//! - `tests.rs`: unit tests
9//! - `prelude.rs`: convenience re-exports for downstream crates
10
11mod edit;
12mod pos;
13pub mod text_buffer;
14mod util;
15
16pub mod prelude;
17
18pub use edit::Edit;
19pub use pos::{Pos, Selection};
20pub use text_buffer::TextBuffer;
21
22#[cfg(test)]
23mod tests;