german-str-borrow 0.1.0

German/Umbra-style strings. Data is allocated, borrowed, static, or inlined
Documentation
  • Coverage
  • 20%
    2 out of 10 items documented0 out of 7 items with examples
  • Size
  • Source code size: 8.46 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.48 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 13s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • m-mueller678

This crate is work in progress, full of unsafe and mostly untested.

German/Umbra-style strings are strings which inline small strings and store a short inline prefix and a pointer for larger strings. This crate implements three storage classes for strings stored out of line similar to Umbra:

  • static (what Umbra calls persistent)
  • borrowed, with borrow checking (transient)
  • heap allocated (temporary)

See this blogpost and the Umbra paper for an explanation of this string format.

This crate currently does not provide str based types, only [u8].