Skip to main content

stepped

Function stepped 

Source
pub fn stepped<T: Copy + PartialEq>(
    all: &[T],
    current: T,
    forward: bool,
    wrap: bool,
) -> T
Expand description

all’s value one step after (forward) or before current, stopping at the ends (wrap: going round instead). A value not in all steps from the first.