#io-write #indentation #line #adapter #fmt #insert #fmt-display

no-std indent_write

Simple Write adapters to add line indentation

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

#710 in Text processing

Download history 28643/week @ 2023-11-21 31833/week @ 2023-11-28 30142/week @ 2023-12-05 26265/week @ 2023-12-12 18326/week @ 2023-12-19 9893/week @ 2023-12-26 27884/week @ 2024-01-02 31441/week @ 2024-01-09 44108/week @ 2024-01-16 41372/week @ 2024-01-23 44073/week @ 2024-01-30 47248/week @ 2024-02-06 43718/week @ 2024-02-13 51873/week @ 2024-02-20 62319/week @ 2024-02-27 45929/week @ 2024-03-05

212,601 downloads per month
Used in 100 crates (3 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