Struct gap_buffer::GapBuffer
[−]
[src]
pub struct GapBuffer { /* fields omitted */ }
Dynamic array that allows efficient insertion and removal operations that are near the same location. Ideal for text editors.
Methods
impl GapBuffer
[src]
fn insert_str(&mut self, offset: usize, s: &str)
Inserts s
into the buffer at offset
.
fn remove(&mut self, range: Range<usize>)
Removes range
from the buffer.