Skip to main content

capped

Function capped 

Source
pub fn capped<T>(
    items: &[T],
    shown: usize,
    resumes_at: impl Fn(usize) -> f64,
    f: impl Fn(&T) -> String,
) -> String
Expand description

items holds the first shown; resumes_at names the second the next one begins at.