string-builder

Crates.iostring-builder
lib.rsstring-builder
version0.2.0
sourcesrc
created_at2018-01-19 04:33:09.820907
updated_at2018-01-19 04:53:28.65194
descriptionA simple string builder type
homepage
repositoryhttps://github.com/gsquire/string-builder
max_upload_size
id47369
size6,923
Garrett Squire (gsquire)

documentation

https://docs.rs/string-builder

README

string-builder

Build Status

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.

Example

extern crate string_builder;

use string_builder::Builder;

fn main() {
    let mut b = Builder::default();
    b.append("it");
    b.append(' ');
    b.append("works!");

    assert_eq!(b.string().unwrap(), "it works!");
}

License

MIT

Commit count: 4

cargo fmt