pub fn capped<T>( items: &[T], shown: usize, resumes_at: impl Fn(usize) -> f64, f: impl Fn(&T) -> String, ) -> String
items holds the first shown; resumes_at names the second the next one begins at.
items
shown
resumes_at