Skip to main content

parse_step_range

Function parse_step_range 

Source
pub fn parse_step_range(raw: &str) -> Result<StepRange>
Expand description

Parse start..end, ..end, start.., or .. into a StepRange. End is always exclusive — 1..11 means the first ten steps. The CLI surface accepts 1-based numbers; the conversion to 0-based indices happens at the slice site.