Skip to main content

ListToString

Trait ListToString 

Source
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.

Required Methods§

Source

fn list_to_string(&self, separator: &str) -> String

Implementors§

Source§

impl<I, H> ListToString for I
where for<'a> &'a I: IntoIterator<Item = &'a H>, H: Display,