Module indenter

Module indenter 

Source
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§

DisplayIndented
Wraps a Display item 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.