2 unstable releases

Uses old Rust 2015

0.2.0 Jan 19, 2018
0.1.0 Jan 19, 2018

#1832 in Rust patterns

Download history 4399/week @ 2024-01-03 4812/week @ 2024-01-10 6982/week @ 2024-01-17 5600/week @ 2024-01-24 6315/week @ 2024-01-31 6726/week @ 2024-02-07 9008/week @ 2024-02-14 8841/week @ 2024-02-21 10821/week @ 2024-02-28 10902/week @ 2024-03-06 10479/week @ 2024-03-13 9214/week @ 2024-03-20 8439/week @ 2024-03-27 12349/week @ 2024-04-03 11697/week @ 2024-04-10 11828/week @ 2024-04-17

46,276 downloads per month
Used in 21 crates (18 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