3 unstable releases

Uses old Rust 2015

0.1.1 Nov 12, 2017
0.1.0 May 17, 2017
0.0.1 Dec 13, 2015

#1282 in Text processing

Download history 1066/week @ 2023-11-30 1294/week @ 2023-12-07 1098/week @ 2023-12-14 1006/week @ 2023-12-21 1418/week @ 2023-12-28 1490/week @ 2024-01-04 1354/week @ 2024-01-11 1576/week @ 2024-01-18 2044/week @ 2024-01-25 3754/week @ 2024-02-01 3263/week @ 2024-02-08 2970/week @ 2024-02-15 1102/week @ 2024-02-22 952/week @ 2024-02-29 863/week @ 2024-03-07 703/week @ 2024-03-14

4,174 downloads per month
Used in 35 crates (via rustfmt)

Apache-2.0/MIT

93KB
2.5K SLoC

Utility string data structures for Rust

Currently contains (more welcome):

  • Rope - an unbalanced rope - efficient append, insertion, and removal of substrings;
  • SrcRope - an unbalanced rope which allows for insertion etc. based on the original positions in the string as well as the current postitions;
  • StringBuffer - a String/linked list hybrid which is efficient for appending strings and iteration over characters from the start of the string.

All data structures are unicode (UTF8) based and interact as closely as possible with Rust strings.

TODO document char iterators

TODO

share code between rope and src_rope balanced rope

Dependencies

~160KB