dynstr
This crate provides an String
implementation which is optimized for string-manipulations,
such as concatenating and slicing.
It is suited for situations where there are lots of dynamic concatenating and slicing such as, but not limited to, Parsers, Interpreters, Template Engines and more.
Example
Event though this example doesn't actually improve the performance (even decreases it), it can demonstrate the basic usage of this library.
use DynamicString;
Note: Any string that has less than 16 bytes is flattened. (Gets copied instead of being referenced.)
License: MIT