indent-display

Crates.ioindent-display
lib.rsindent-display
version0.1.1
sourcesrc
created_at2021-08-20 16:15:35.220362
updated_at2023-09-09 21:14:39.367001
descriptionIndented display formatter
homepagehttps://github.com/atthecodeface/indent-display
repositoryhttps://github.com/atthecodeface/indent-display
max_upload_size
id440049
size37,527
Gavin J Stark (atthecodeface)

documentation

https://docs.rs/indent-display

README

indent-rs

A type and associated traits to enable display of hierarcical structures with appropriate indentation.

Examples

use indent_display::{Indenter, NullOptions, DefaultIndentedDisplay};
let mut ind = Indenter::new(&std::io::stdout(), "  ", &NullOptions {});
"banana\n".indent(&mut ind);
panic("argh");

Usage

Add this to your Cargo.toml:

[dependencies]
indent-display = "0.1.0"

Releases

Release notes are available in RELEASES.md.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Commit count: 4

cargo fmt