segmented_string 0.2.0

an immutable string type built from array segments, similar to clojure's persistent vector, with unicode grapheme/width support
Documentation
  • Coverage
  • 33.33%
    1 out of 3 items documented0 out of 0 items with examples
  • Size
  • Source code size: 68.6 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 487.0 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 5s Average build duration of successful builds.
  • all releases: 7s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • robey

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) or the anti-capitalist license (LICENSE-anti-capitalist.txt) at your preference, for personal or non-commercial use.

Credit and blame: Robey Pointer robey@lag.net