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

#1735 in Text processing

Download history 847/week @ 2024-07-24 880/week @ 2024-07-31 967/week @ 2024-08-07 1352/week @ 2024-08-14 1146/week @ 2024-08-21 1034/week @ 2024-08-28 993/week @ 2024-09-04 789/week @ 2024-09-11 690/week @ 2024-09-18 1034/week @ 2024-09-25 881/week @ 2024-10-02 759/week @ 2024-10-09 932/week @ 2024-10-16 1118/week @ 2024-10-23 1048/week @ 2024-10-30 701/week @ 2024-11-06

3,995 downloads per month
Used in 39 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

~165KB