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

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

#653 in Text processing

Download history 41483/week @ 2024-03-14 46742/week @ 2024-03-21 41500/week @ 2024-03-28 35642/week @ 2024-04-04 35266/week @ 2024-04-11 46051/week @ 2024-04-18 44935/week @ 2024-04-25 45668/week @ 2024-05-02 36461/week @ 2024-05-09 48555/week @ 2024-05-16 46783/week @ 2024-05-23 59058/week @ 2024-05-30 44512/week @ 2024-06-06 45178/week @ 2024-06-13 49179/week @ 2024-06-20 34720/week @ 2024-06-27

185,912 downloads per month
Used in 110 crates (4 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