Skip to main content

next

Function next 

Source
pub fn next(
    order: &[usize],
    current: Option<usize>,
    back: bool,
    cycle: bool,
) -> Option<usize>
Expand description

The stop after current in order (before it when back): None at either end unless cycle, when it wraps round. A current not in the order goes to the first stop (the last when back).