Skip to main content

step_value

Function step_value 

Source
pub fn step_value<T: Copy + PartialEq>(all: &[T], current: T, delta: i8) -> T
Expand description

current stepped by delta through all, wrapping; the first value when current is not among them.