Search results

There are no results.

std.range.Range

Range

A range of integers.

Required methods

end

Show source code
Hide source code
fn pub end -> Int
fn pub end -> Int

Returns the last value in the range.

inclusive?

Show source code
Hide source code
fn pub inclusive? -> Bool
fn pub inclusive? -> Bool

Returns true if the range is an inclusive range.

iter

Show source code
Hide source code
fn pub iter -> Iter[Int]
fn pub iter -> Iter[Int]

Returns an iterator over the values in self.

size

Show source code
Hide source code
fn pub size -> Int
fn pub size -> Int

Returns the number of values in this range.

start

Show source code
Hide source code
fn pub start -> Int
fn pub start -> Int

Returns the first value in the range.

Implementations

std.range.

ExclusiveRange

impl Range for ExclusiveRange
std.range.

InclusiveRange

impl Range for InclusiveRange