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

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

#572 in Text processing

Download history 49717/week @ 2024-05-27 54985/week @ 2024-06-03 46128/week @ 2024-06-10 43681/week @ 2024-06-17 50799/week @ 2024-06-24 35969/week @ 2024-07-01 49521/week @ 2024-07-08 52450/week @ 2024-07-15 60886/week @ 2024-07-22 48917/week @ 2024-07-29 43727/week @ 2024-08-05 36636/week @ 2024-08-12 38547/week @ 2024-08-19 44498/week @ 2024-08-26 38762/week @ 2024-09-02 38704/week @ 2024-09-09

161,678 downloads per month
Used in 115 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