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

#526 in Text processing

Download history 39071/week @ 2024-08-09 39155/week @ 2024-08-16 42798/week @ 2024-08-23 38839/week @ 2024-08-30 41299/week @ 2024-09-06 38355/week @ 2024-09-13 49856/week @ 2024-09-20 42294/week @ 2024-09-27 47761/week @ 2024-10-04 47137/week @ 2024-10-11 49912/week @ 2024-10-18 48408/week @ 2024-10-25 44321/week @ 2024-11-01 53215/week @ 2024-11-08 47343/week @ 2024-11-15 29442/week @ 2024-11-22

183,419 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