Re-exports§
pub use encoding::Encoding;pub use file_kind::BufferFileKind;pub use format::BufferFormat;pub use format::LineEnding;pub use persistence::Persistence;pub use save::SudoSaveRequired;pub use search::ChunkedSearchState;pub use search::HybridSearchPlan;pub use crate::model::filesystem::SearchMatch;pub use crate::primitives::line_iterator::LineIterator;
Modules§
- file_
kind - File-kind classification for a
TextBuffer. - format
- Encoding and line-ending state for a
TextBuffer. - persistence
- Persistence state for a
TextBuffer. - save
- Save/write-recipe logic for
TextBuffer. - search
Structs§
- Buffer
Config - Configuration passed to TextBuffer constructors.
- Buffer
Snapshot - Snapshot of a TextBuffer’s piece tree and associated string buffers.
- Chunk
Info - Information about a chunk of data for pattern matching
- Large
File Encoding Confirmation - Error returned when a large file has a non-resynchronizable encoding and requires user confirmation before loading the entire file into memory.
- Line
Data - Line data with optional line number
- Line
Scan Chunk - A work item for incremental line-feed scanning (one per leaf).
- Overlapping
Chunks - Iterator that yields overlapping chunks for pattern matching
- Text
Buffer - A text buffer that manages document content using a piece table with integrated line tracking
- Text
Buffer Line Iterator - Iterator over lines in a TextBuffer that efficiently tracks line numbers using piece tree metadata (single source of truth)
Enums§
- Line
Number - Line ending format used in the file Represents a line number (simplified for new implementation) Legacy enum kept for backwards compatibility - always Absolute now
Constants§
- CHUNK_
ALIGNMENT - Chunk alignment for lazy loading (64 KB)
- DEFAULT_
LARGE_ FILE_ THRESHOLD - Default threshold for considering a file “large” (100 MB)
- LOAD_
CHUNK_ SIZE - Chunk size to load when lazy loading (1 MB)
Type Aliases§
- Buffer
- Type alias for backwards compatibility