Module string

Source
Expand description

Utilities for writing formatted/decorated strings to the terminal without any extra allocations.

Structs§

DecoratedString
A string with optional StringDecoration.
FormattedString
StringDecoration
Optional decoration to be applied to a string being written to a terminal.
StringFormatting
Optional formatting to be applied to a string being written to a terminal.
StringIter
An iterator for writing wrapped strings to a rectangular grid. Will attempt to respect formatting and the size of the given area while yielding each string character and grid position.
TerminalString
A string with optional StringDecoration and StringFormatting applied.

Traits§

StringDecorator
A trait for creating a DecoratedString.
StringFormatter