2 unstable releases
Uses old Rust 2015
0.2.0 | Jan 19, 2018 |
---|---|
0.1.0 | Jan 19, 2018 |
#1549 in Rust patterns
88,408 downloads per month
Used in 24 crates
(20 directly)
6KB
94 lines
string-builder
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