array_tool::vec

Trait Join

Source
pub trait Join {
    // Required method
    fn join(&self, joiner: &'static str) -> String;
}
Expand description

Join vector of ToString capable things to a String with given delimiter.

Required Methods§

Source

fn join(&self, joiner: &'static str) -> String

§Example
use array_tool::vec::Join;

vec![1,2,3].join(",");
§Output
"1,2,3"

Implementations on Foreign Types§

Source§

impl<T: ToString> Join for Vec<T>

Source§

fn join(&self, joiner: &'static str) -> String

Implementors§