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

#485 in Text processing

Download history 43260/week @ 2024-11-19 30969/week @ 2024-11-26 44789/week @ 2024-12-03 53203/week @ 2024-12-10 66250/week @ 2024-12-17 27256/week @ 2024-12-24 40108/week @ 2024-12-31 68180/week @ 2025-01-07 75401/week @ 2025-01-14 74784/week @ 2025-01-21 76477/week @ 2025-01-28 85325/week @ 2025-02-04 76822/week @ 2025-02-11 86229/week @ 2025-02-18 89285/week @ 2025-02-25 64990/week @ 2025-03-04

332,663 downloads per month
Used in 142 crates (8 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