Enum WrappedCollection
pub enum WrappedCollection<T> {
NoWrapping(T),
Parentheses(T),
}Expand description
Helper to indicate if a collection should be wrapped by a symbol in the display form
Display is implemented for every Vec<T> where T: Display.
The string output is a comma separated list for the vec items
§Examples
let items = WrappedCollection::Parentheses(vec!["one", "two", "three"]);
assert_eq!("(one, two, three)", items.to_string());
let items = WrappedCollection::NoWrapping(vec!["one", "two", "three"]);
assert_eq!("one, two, three", items.to_string());