std::Range<T>
Range<T>
Represents a range of values of type T
Constructors
Range
Creates a range from first to last with specified step
Range(self, first: T, last: T, step: isize = 1)Range
Creates a range from 0 to last with step 1
Range(self, last: T)Operators
operator in
Iterator operator for range-based loops
fn op in (self)[iter] -> yield Toperator in
Contains operator to check if value is in range
fn op in (self, value: T)[contains] -> boolMethods
begin
Returns the beginning value of the range
begin(self) -> Tend
Returns the ending value of the range
end(self) -> Tstep
Returns the step value of the range
step(self) -> Tcontains
Checks if a value is within the range
contains(self, value: const T&) -> boolis_empty
Checks if the range is empty
is_empty(self) -> bool