2 unstable releases

Uses old Rust 2015

0.2.0 Jan 19, 2018
0.1.0 Jan 19, 2018

#1153 in Text processing

Download history 6240/week @ 2023-11-03 7183/week @ 2023-11-10 5453/week @ 2023-11-17 6599/week @ 2023-11-24 6411/week @ 2023-12-01 7834/week @ 2023-12-08 5016/week @ 2023-12-15 1109/week @ 2023-12-22 2560/week @ 2023-12-29 5651/week @ 2024-01-05 5673/week @ 2024-01-12 6363/week @ 2024-01-19 6192/week @ 2024-01-26 7059/week @ 2024-02-02 7642/week @ 2024-02-09 7408/week @ 2024-02-16

29,416 downloads per month
Used in 19 crates (16 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