pub struct RangeIterRev<T> { /* private fields */ }
Expand description
Reversed const-iterator for Range
This is constructed like this:
konst::iter::into_iter!(0..10).rev()
Implementations§
Source§impl<T> RangeIterRev<T>where
T: Step,
impl<T> RangeIterRev<T>where
T: Step,
Sourcepub const fn copy(&self) -> RangeIterRev<T>
pub const fn copy(&self) -> RangeIterRev<T>
Creates a clone of this iterator
Sourcepub const fn next(self) -> Option<(T, RangeIterRev<T>)>
pub const fn next(self) -> Option<(T, RangeIterRev<T>)>
Advances the iterator and returns the next value.
Sourcepub const fn next_back(self) -> Option<(T, RangeIterRev<T>)>
pub const fn next_back(self) -> Option<(T, RangeIterRev<T>)>
Removes and returns an element from the end of the iterator.
Trait Implementations§
Source§impl<T> ConstIntoIter for RangeIterRev<T>where
T: Step,
impl<T> ConstIntoIter for RangeIterRev<T>where
T: Step,
Auto Trait Implementations§
impl<T> Freeze for RangeIterRev<T>where
T: Freeze,
impl<T> RefUnwindSafe for RangeIterRev<T>where
T: RefUnwindSafe,
impl<T> Send for RangeIterRev<T>where
T: Send,
impl<T> Sync for RangeIterRev<T>where
T: Sync,
impl<T> Unpin for RangeIterRev<T>where
T: Unpin,
impl<T> UnwindSafe for RangeIterRev<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more