Expand description
Support for indenting multi-line displays.
This module is adapted from indenter and is used under the terms of the MIT or Apache-2.0 licenses.
The main type is Indented, which wraps a writer and indents each line. It works with both
WriteStr and fmt::Write.
Structs§
- Display
Indented - Wraps a
Displayitem to indent each line when displayed. - Indented
- Helper struct for efficiently indenting multi-line display implementations.
Functions§
- indented
- Helper function for creating a default indenter.