Crate im_rope

source ·
Expand description

A Unicode string backed by an RRB vector.

Similarly to the standard library String type, a Rope owns its storage and guarantees that its contents are valid Unicode. Unlike a String, it is backed not by a Vec<u8> but by an im::Vector<u8>. These in turn are backed by a balanced tree structure known as an an RRB tree, which makes a wide variety of operations asymptotically efficient. In particular, ropes can be cloned in constant time, and can be split or concatenated in logarithmic time.

Modules

  • Lending iterators over vectors, with flexible ownership.
  • Implementing types for pattern search
  • Test strategies for ropes

Structs

Enums

Traits