segmented_string 0.3.0

an immutable string type built from array segments, similar to clojure's persistent vector, with unicode grapheme/width support
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
# segmented_string

This library implements a replacement for `String` which uses multiple byte arrays (chunks of 128 bytes by default) as its backing store, instead of one long memory allocation. It also allows strings to be efficiently indexed and sliced as if they were arrays of grapheme clusters (which it calls "chars") while still storing them as UTF-8-encoded byte arrays. It's `no_std` compatible.

## to-do

- actual docs

## License

This code is licensed under either the prosperity license ([`LICENSE-propserity.md`](https://prosperitylicense.com/versions/3.0.0)) or the anti-capitalist license ([`LICENSE-anti-capitalist.txt`](https://anticapitalist.software/)) at your preference, for personal or non-commercial use.

Credit and blame: Robey Pointer <robey@lag.net>