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.
§Notes
We previously used to use indenter
to indent multi-line fmt::Display
instances. However, at some point we needed to also indent
std::io::Write
s, not just fmt::Write
. indenter
0.3.3 doesn’t support
std::io::Write
, so we switched to indent_write
.
This file still has the indenter
API. So we have both APIs floating around
for a bit… oh well. Still in two minds about which one’s better here.
Structs§
- Helper struct for efficiently indenting multi line display implementations
Enums§
- The set of supported formats for indentation
Functions§
- Helper function for creating a default indenter
Type Aliases§
- A callback for
Format::Custom
used to insert indenation after a new line