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]

Inserts s into the buffer at offset.

Removes range from the buffer.

Creates a new buffer with a capacity sized allocation.

Panics

  • If malloc returns NULL.

Trait Implementations

impl Display for GapBuffer
[src]

Formats the value using the given formatter. Read more

impl Drop for GapBuffer
[src]

A method called when the value goes out of scope. Read more