Crate rangex

Source
Expand description

This crate provides clear range expression for exclusive/inclusive, forward/backward, and step great than 1 or less than -1, with index support.

The most convenient way is to use the following macros:

range_inclusive!(start, stop)

This is the same as start..=stop

range_exclusive!(start, stop)

This is the same as start..stop

range_inclusive!(type, start, stop)

Creates range for type from start through stop, by step 1

range_inclusive!(type, start, stop, step)

Creates range for type from start through stop, by step

indexed_range_inclusive!(type, start, stop)

Creates indexed range for type from start through stop, by step 1

indexed_range_inclusive!(type, start, stop, step)

Creates indexed range for type from start through stop, by step

Modules§

basic_range
DocTest for basic_range
indexed_range
DocTest for indexed_range

Macros§

indexed_range_exclusive
indexed_range_inclusive
range_exclusive
range_inclusive