Files
vinezombie/doc/rustdoc/string2.md.bak
2023-08-10 08:37:44 -07:00

15 lines
677 B
Markdown

## String Manipulation
Immutability and the newtype heirarchy are good for ensuring your data is valid,
but can be difficult to work with efficiently if you need to create new strings.
`vinezombie` includes a few ways of creating new strings from existing ones,
depending on your needs:
- [`Builder`] can be used to construct new strings via concatenation.
- [`Transform`]s provide copy-on-write semantics for string transformation operations.
- [`Splitter`] can be used to split strings.
All of these solutions are newtype-aware and have a notion of UTF-8 validity.
The [`tf`] module includes a few `Transform` implementations that are
relevant to processing IRC messages.