This crate is a indentedtextwriter type allowing you to append anything that satisfies the ToBytes trait to it. This includes things such as string slices, owned strings, byte slices, and characters for example.

like : C#

Example

write code: ```rust

[cfg(test)]

use super::IndentedTextWriter;

fn main() { let mut writer = IndentedTextWriter::new(" ",1024, '{', '}'); writer.writeline("struct Data {"); writer.writeline("name: String,"); writer.writeline("value: i32"); writer.writeline("}"); println!("{}",writer.string().unwrap()); } Result: rust struct Data { name: String, value: i32 } ```

forked by https://github.com/gsquire/string-builder

License

MIT