pub struct RangeInclusiveIterRev<T> { /* private fields */ }
Expand description
Reversed const-iterator for RangeInclusive
This is constructed like this:
konst::iter::into_iter!(0..=10).rev()
Implementations§
Source§impl<T> RangeInclusiveIterRev<T>where
T: Step,
impl<T> RangeInclusiveIterRev<T>where
T: Step,
Sourcepub const fn copy(&self) -> RangeInclusiveIterRev<T>
pub const fn copy(&self) -> RangeInclusiveIterRev<T>
Creates a clone of this iterator
Sourcepub const fn rev(self) -> RangeInclusiveIter<T>
pub const fn rev(self) -> RangeInclusiveIter<T>
Reverses the iterator
Sourcepub const fn next(self) -> Option<(T, RangeInclusiveIterRev<T>)>
pub const fn next(self) -> Option<(T, RangeInclusiveIterRev<T>)>
Advances the iterator and returns the next value.
Sourcepub const fn next_back(self) -> Option<(T, RangeInclusiveIterRev<T>)>
pub const fn next_back(self) -> Option<(T, RangeInclusiveIterRev<T>)>
Removes and returns an element from the end of the iterator.
Trait Implementations§
Source§impl<T> ConstIntoIter for RangeInclusiveIterRev<T>where
T: Step,
impl<T> ConstIntoIter for RangeInclusiveIterRev<T>where
T: Step,
Auto Trait Implementations§
impl<T> Freeze for RangeInclusiveIterRev<T>where
T: Freeze,
impl<T> RefUnwindSafe for RangeInclusiveIterRev<T>where
T: RefUnwindSafe,
impl<T> Send for RangeInclusiveIterRev<T>where
T: Send,
impl<T> Sync for RangeInclusiveIterRev<T>where
T: Sync,
impl<T> Unpin for RangeInclusiveIterRev<T>where
T: Unpin,
impl<T> UnwindSafe for RangeInclusiveIterRev<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