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

#457 in Text processing

Download history 60037/week @ 2024-07-23 45835/week @ 2024-07-30 46051/week @ 2024-08-06 36269/week @ 2024-08-13 41288/week @ 2024-08-20 37690/week @ 2024-08-27 43827/week @ 2024-09-03 39066/week @ 2024-09-10 41155/week @ 2024-09-17 47353/week @ 2024-09-24 46242/week @ 2024-10-01 45030/week @ 2024-10-08 48526/week @ 2024-10-15 52637/week @ 2024-10-22 41680/week @ 2024-10-29 42300/week @ 2024-11-05

191,450 downloads per month
Used in 121 crates (6 directly)

MPL-2.0 license

18KB
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, fmt::Write, and 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