join_to_string 0.1.3

Join a list of items to string/buffer.
Documentation
  • Coverage
  • 45.45%
    5 out of 11 items documented0 out of 9 items with examples
  • Size
  • Source code size: 16.51 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.41 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 11s Average build duration of successful builds.
  • all releases: 11s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • matklad/join_to_string
    3 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • matklad

join

Build Status Crates.io API reference

Join a list of items to string:

extern crate join_to_string;
use join_to_string::join;

fn main() {
    let mut buf = String::new();
    join([1, 2, 3].iter())
        .separator(", ")
        .prefix("(")
        .suffix(")")
        .to_buf(&mut buf); // .to_string()
    assert_eq!(buf, "(1, 2, 3)");
}