Crate gapbuf[−][src]
gapbuf
provides the type GapBuffer
.
GapBuffer
has methods similar to Vec
.
Examples
#[macro_use] extern crate gapbuf; fn main() { let mut b = gap_buffer![1, 2, 3]; b.insert(1, 10); assert_eq!(b, [1, 10, 2, 3]); b.remove(2); assert_eq!(b, [1, 10, 3]); }
Macros
gap_buffer |
Creates a |
Structs
Drain |
A draining iterator for |
GapBuffer |
Dynamic array that allows efficient insertion and deletion operations clustered near the same location. |
IntoIter |
An iterator that moves out of a |
Range |
Immutable sub-range of |
RangeMut |
Mutable sub-range of |
Slice |
Sub-range of |
Splice |
A splicing iterator for |
Type Definitions
Iter |
Immutable GapBuffer iterator. |
IterMut |
Mutable GapBuffer iterator. |