Skip to content

matklad/join_to_string

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)");
}

About

No description, website, or topics provided.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Languages