std.range.Range
Range
A range of integers.
Required methods
end
Show source codeHide source code
fn pub end -> Int
fn pub end -> Int
Returns the last value in the range.
inclusive?
Show source codeHide source code
fn pub inclusive? -> Bool
fn pub inclusive? -> Bool
Returns true
if the range is an inclusive range.
iter
Show source codeHide source code
fn pub iter -> Iter[Int]
fn pub iter -> Iter[Int]
Returns an iterator over the values in self
.
size
Show source codeHide source code
fn pub size -> Int
fn pub size -> Int
Returns the number of values in this range.
start
Show source codeHide source code
fn pub start -> Int
fn pub start -> Int
Returns the first value in the range.
Implementations
ExclusiveRange
impl Range for ExclusiveRange
InclusiveRange
impl Range for InclusiveRange