7 unstable releases (3 breaking)

Uses old Rust 2015

0.3.1 Feb 10, 2017
0.3.0 Jan 14, 2017
0.2.0 Jan 14, 2017
0.1.2 Jan 9, 2017
0.0.1 Dec 29, 2016

#10 in #rope

Download history 64/week @ 2022-06-03 2/week @ 2022-06-10 4/week @ 2022-06-17 4/week @ 2022-06-24 17/week @ 2022-07-01 16/week @ 2022-07-08 9/week @ 2022-07-15 10/week @ 2022-07-22 3/week @ 2022-07-29 13/week @ 2022-08-05 6/week @ 2022-08-12 4/week @ 2022-08-19 10/week @ 2022-08-26 6/week @ 2022-09-02 34/week @ 2022-09-09 17/week @ 2022-09-16

68 downloads per month
Used in persistent_rope

MIT license

345KB
4.5K SLoC

an rope

Build Status codecov Dependency Status Clippy Linting Result MIT License crates.io RustDoc documentation Master RustDoc

An immutable Rope data structure for storing large text documents. This implementation is a component of the an-editor project.

A rope is an efficient data structure for large strings. It's essentially a binary tree whose leaves are strings.

For more information, see the following resources:

compatibility

an-rope is built against the latest stable, beta, and nightly Rust releases, on macOS and Ubuntu. Some features rely on nightly Rust, and may not be available on other release channels.

cargo feature flags

  • tendril: use the tendril library to optimise performance for small strings.
  • rebalance: enable Rope rebalancing.
  • atomic: ensure Ropes are thread-safe (use Arc or atomic tendrils)
  • unstable: enable nightly Rust features. pass this flag if building on nightly Rust.

Dependencies

~0.5–1MB
~16K SLoC