Skip to main content

bars

Function bars 

Source
pub fn bars<T>(
    items: &[T],
    keep: fn(&T) -> bool,
    label: fn(&T, usize) -> String,
    value: fn(&T) -> f64,
    count: usize,
    label_chars: usize,
    places: u32,
) -> Vec<(String, f64)>