Expand description
String utilities.
Structs§
- Same as
QuotedStr
, but also escapes new lines and tabs. - A helper struct to keep track of indentation levels.
- Newtype wrapper around
String
whose byte length is guaranteed to be less than or equal to the providedMAX
. - Displays a string slice surrounded by double quotes with any inner double quote characters escaped.
Traits§
- Convenience methods for pretty-printing based on indentation that are automatically available for context objects that can be mutably referenced as an
Indent
instance. - Extension methods for
str
.
Functions§
- Creates a type whose
fmt::Display
implementation outputs item preceded byopen
and followed byclose
. - Given a closure, it creates a Display that simply calls the given closure when fmt’d.