Struct konst::range::RangeIterRev
source · 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,
§type Kind = IsIteratorKind
type Kind = IsIteratorKind
What kind of type this is: Read more
§type IntoIter = RangeIterRev<T>
type IntoIter = RangeIterRev<T>
The iterator that this can be converted into.
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