std.range.Range
RangeA range of integers.
Required methods
end
Show source codeHide source code
fn pub end -> Intfn pub end -> IntReturns the last value in the range.
inclusive?
Show source codeHide source code
fn pub inclusive? -> Boolfn pub inclusive? -> BoolReturns 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 -> Intfn pub size -> IntReturns the number of values in this range.
start
Show source codeHide source code
fn pub start -> Intfn pub start -> IntReturns the first value in the range.
Implementations
ExclusiveRange
impl Range for ExclusiveRangeInclusiveRange
impl Range for InclusiveRange