stringbuf 0.1.0

An efficient and easy-to-use library to append strings.
Documentation

StringBuf

A nice and concise string concatenation library for the Rust language.

Preparation

Put this in your Cargo.toml:

[dependencies]
stringbuf = "0.1.0"

Usage

Instantiation:

extern crate stringbuf;

use stringbuf::StringBuf;

fn main() {
    let mut sb = StringBuf::from("Hello");
    sb = sb + " " + "world!";
    sb += " AddAssign works,";

    assert_eq!("Hello world! AddAssign works, as does appending by method.",
               *sb.append(" as does appending by method."));
}