MCPcopy Create free account
hub / github.com/ProgrammingRust/examples / GapBuffer

Class GapBuffer

gap-buffer/src/lib.rs:13–22  ·  view source on GitHub ↗

A GapBuffer is a sequence of elements of type `T` that can insert and remove elements at any position in constant time. Indexing is also constant time. However, changing the position at which insertion and removal occur takes time proportional to the distance the insertion position is being moved.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected