Skip to main content

range_stepped

Function range_stepped 

Source
pub fn range_stepped<I: Int>(
    start: I,
    end: I,
    step: I,
) -> Box<dyn Iterator<Item = I>>
Expand description

Stepped range. Equivalent to:

ⓘ
(start..end).step_by(step)

Allows using any integer for the step, instead of just usize