This crate is a simple string builder 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#
write code: ```rust
use super::IndentedTextWriter;
fn main() {
let mut writer = IndentedTextWriter::new("\t",1024);
writer.writeline("struct Data {");
writer.indents(1);
writer.writeline("name: String,");
writer.writeline("value: i32");
writer.unindents(1);
writer.writeline("}");
println!("{}",writer.string().unwrap());
}
Result:
rust
struct Data {
name: String,
value: i32
}
```
forked by https://github.com/gsquire/string-builder
MIT