Registry / utility / indent-write

indent-write

JSON →
library2.2.0rscratesunverified

Simple Write adapters to add line indentation to output.

# Cargo.toml [dependencies] indent_write = "2.2.0"
INSTALL
IMPORT
SIG · INDENT-WRITE
I
indent-write
utilityrustv2.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

IndentWriter
use indent_write::IndentWriter;

Writes indented output using IndentWriter.

use indent_write::IndentWriter; use std::io::Write; fn main() -> Result<(), Box<dyn std::error::Error>> { let mut writer = IndentWriter::new(" ", Vec::new()); writeln!(writer, "Hello, world!")?; println!("{}", String::from_utf8(writer.into_inner())?); Ok(()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.2.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Amazon
1
Resources
indent-write — cargo add indent-write · libregistry