Module buffer

Module buffer 

Source
Expand description

A Buffer represents a single file or in memory text buffer open within the editor.

Structsยง

Buffer
Internal state for a text buffer backed by a file on disk
Chars
An iterator of characters from a Slice
GapBuffer
An implementation of a gap buffer that tracks internal meta-data to help with accessing sub-regions of the text such as character ranges and lines.
IdxChars
An iterator of characters and their indices from a Slice
Slice
A view on a region of the GapBuffer.
SliceIter