Skip to main content Module buffer Copy item path Source pub use encoding::Encoding ;pub use crate::model::filesystem::SearchMatch ;pub use crate::primitives::line_iterator::LineIterator ;BufferConfig Configuration passed to TextBuffer constructors. BufferSnapshot Snapshot of a TextBuffer’s piece tree and associated string buffers. ChunkInfo Information about a chunk of data for pattern matching ChunkedSearchState Mutable state for an incremental chunked search over a TextBuffer’s
piece tree. This is the in-editor search path — it reads chunks via
get_text_range_mut which loads lazily from disk and works with the
piece tree’s edit history. HybridSearchPlan A plan for hybrid search — extracted from a TextBuffer’s piece tree
on the main thread, executable on any thread. LargeFileEncodingConfirmation Error returned when a large file has a non-resynchronizable encoding
and requires user confirmation before loading the entire file into memory. LineData Line data with optional line number LineScanChunk A work item for incremental line-feed scanning (one per leaf). OverlappingChunks Iterator that yields overlapping chunks for pattern matching SudoSaveRequired Error returned when a file save operation requires elevated privileges. TextBuffer A text buffer that manages document content using a piece table
with integrated line tracking TextBufferLineIterator Iterator over lines in a TextBuffer that efficiently tracks line numbers
using piece tree metadata (single source of truth) LineEnding Line ending format used in the file LineNumber Represents a line number (simplified for new implementation)
Legacy enum kept for backwards compatibility - always Absolute now 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) Buffer Type alias for backwards compatibility