Range
struct Range<T> where T is integralimport Range from Wax;An integral range with a start and exclusive end, used by range iteration. Step supplies a
positive stride; use ascending bounds for a nonempty range.
Members
startfield
public T startThe inclusive first value.
endfield
public T endThe exclusive upper bound.
constructorconstructor
public constructor (T start, T end)Creates a range with the supplied start and exclusive end.
Stepmethod
public fn Step(T step) : SteppedRange<T>Returns a stepped range with the same bounds. A zero or negative step panics.
ToStringmethod
public fn ToString() : stringProvided by the compiler.
ToStringBuffermethod
public fn ToStringBuffer(StringBuilder builder) : int32Provided by the compiler.