indent-display 0.1.1

Indented display formatter
Documentation
  • Coverage
  • 42.86%
    3 out of 7 items documented1 out of 1 items with examples
  • Size
  • Source code size: 37.19 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.12 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • atthecodeface/indent-display
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • atthecodeface

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.