#string

string-builder

A simple string builder type

2 unstable releases

Uses old Rust 2015

0.2.0 Jan 19, 2018
0.1.0 Jan 19, 2018

#228 in #string

Download history 1167/week @ 2022-12-07 892/week @ 2022-12-14 646/week @ 2022-12-21 749/week @ 2022-12-28 919/week @ 2023-01-04 1133/week @ 2023-01-11 914/week @ 2023-01-18 1205/week @ 2023-01-25 1392/week @ 2023-02-01 1395/week @ 2023-02-08 1490/week @ 2023-02-15 1417/week @ 2023-02-22 1338/week @ 2023-03-01 1425/week @ 2023-03-08 1212/week @ 2023-03-15 987/week @ 2023-03-22

5,258 downloads per month
Used in 15 crates (12 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