#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

#129 in #string

Download history 486/week @ 2021-06-04 707/week @ 2021-06-11 489/week @ 2021-06-18 1200/week @ 2021-06-25 1627/week @ 2021-07-02 1227/week @ 2021-07-09 1172/week @ 2021-07-16 1161/week @ 2021-07-23 1599/week @ 2021-07-30 1047/week @ 2021-08-06 1118/week @ 2021-08-13 1582/week @ 2021-08-20 1034/week @ 2021-08-27 919/week @ 2021-09-03 1507/week @ 2021-09-10 971/week @ 2021-09-17

3,127 downloads per month
Used in 7 crates (6 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