4 stable releases
2.2.0 | Apr 21, 2021 |
---|---|
2.1.0 | Feb 7, 2021 |
2.0.0 | Dec 7, 2020 |
1.0.0 | Dec 7, 2020 |
#531 in Text processing
111,633 downloads per month
Used in 86 crates
(4 directly)
17KB
225 lines
indent-write
Nestable wrappers for fmt::Write
and io::Write
that perform indentation for you
lib.rs
:
Simple indentation adapters for [io::Write
][std::io::Write],
[fmt::Write
][std::fmt::Write], and [Display
][std::fmt::Display]. Each
adapter wraps a writer or writable object, and inserts an indentation at
the front of each non-empty line.
See [fmt::IndentWriter
], [io::IndentWriter
], and
[indentable::Indentable
] for examples.
No runtime deps
Features
- std