pub trait ListToString {
// Required method
fn list_to_string(&self, separator: &str) -> String;
}Expand description
Extension trait to convert a list of displayable items into a single string.
For example, vec![1, 2, 3].list_to_string(", ") will produce the string 1, 2, 3.