Skip to main content

move_chart_item

Function move_chart_item 

pub fn move_chart_item<T>(
    current: Option<T>,
    items: &[T],
    action: ChartNavAction,
) -> Option<T>
where T: Clone + PartialEq,
Expand description

Move through a filtered list while preserving the caller’s original item indices (for example, skipping invalid or zero-valued data).