Crates.io | indent-display |
lib.rs | indent-display |
version | 0.1.1 |
source | src |
created_at | 2021-08-20 16:15:35.220362 |
updated_at | 2023-09-09 21:14:39.367001 |
description | Indented display formatter |
homepage | https://github.com/atthecodeface/indent-display |
repository | https://github.com/atthecodeface/indent-display |
max_upload_size | |
id | 440049 |
size | 37,527 |
A type and associated traits to enable display of hierarcical structures with appropriate indentation.
use indent_display::{Indenter, NullOptions, DefaultIndentedDisplay};
let mut ind = Indenter::new(&std::io::stdout(), " ", &NullOptions {});
"banana\n".indent(&mut ind);
panic("argh");
Add this to your Cargo.toml
:
[dependencies]
indent-display = "0.1.0"
Release notes are available in RELEASES.md.
Licensed under either of
at your option.
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.