string-builder 0.2.0

A simple string builder type
Documentation
  • Coverage
  • 75%
    6 out of 8 items documented3 out of 7 items with examples
  • Size
  • Source code size: 6.55 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.38 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • gsquire/string-builder
    5 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • gsquire

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