Skip to main content

redox_core/buffer/text_buffer/
mod.rs

1//! Split implementation of the Ropey-backed `TextBuffer`.
2//!
3//! The goal of this submodule is to keep the `TextBuffer` implementation easy to
4//! navigate and extend by separating it into focused files:
5//! - `core.rs`: struct definition + basic constructors/accessors
6//! - `lines.rs`: line indexing helpers
7//! - `pos.rs`: (line, col) conversions and cursor-ish movement
8//! - `slice.rs`: extracting text
9//! - `edit.rs`: mutation operations (insert/delete/apply edits)
10//! - `word.rs`: word-ish motions (intentionally minimal, easy to swap later)
11//!
12//! `TextBuffer` remains a single public type re-exported by `buffer::mod.rs`.
13//! All methods are inherent impls spread across these modules.
14
15mod core;
16mod editing;
17mod lines;
18mod positions;
19mod slicing;
20mod words;
21
22pub use core::TextBuffer;