Crate a_range[][src]

Create ranges in a very explicit manner

Start with the from() function and build up a range using From::up_to or From::down_to.

Examples

extern crate a_range;

let x = a_range::from(5).up_to(7);
assert_eq!(x.to_vec(), vec![5, 6, 7]);

let x = a_range::from(3).down_to(1);
assert_eq!(x.to_vec(), vec![3, 2, 1]);

Structs

From

Constructed using from()

Range

A range

RangeIter

Iterator over a range

Functions

from

Start constructing a new Range.