fn calculate_width<I, T>(items: I) -> (usize, usize)where I: IntoIterator<Item = T>, T: AsRef<ListItem>,
Returns the count and total width of the list items.