Crates.io | string-builder |
lib.rs | string-builder |
version | 0.2.0 |
source | src |
created_at | 2018-01-19 04:33:09.820907 |
updated_at | 2018-01-19 04:53:28.65194 |
description | A simple string builder type |
homepage | |
repository | https://github.com/gsquire/string-builder |
max_upload_size | |
id | 47369 |
size | 6,923 |
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.
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!");
}
MIT