2 unstable releases

Uses old Rust 2015

0.2.0 Jan 19, 2018
0.1.0 Jan 19, 2018

#1549 in Rust patterns

Download history 15449/week @ 2024-07-21 16807/week @ 2024-07-28 15433/week @ 2024-08-04 17771/week @ 2024-08-11 17665/week @ 2024-08-18 17584/week @ 2024-08-25 16168/week @ 2024-09-01 18085/week @ 2024-09-08 20316/week @ 2024-09-15 19686/week @ 2024-09-22 20790/week @ 2024-09-29 18522/week @ 2024-10-06 18430/week @ 2024-10-13 23805/week @ 2024-10-20 19975/week @ 2024-10-27 25684/week @ 2024-11-03

88,408 downloads per month
Used in 24 crates (20 directly)

MIT license

6KB
94 lines

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

No runtime deps