Struct konst::slice::RChunksExactRev
source · pub struct RChunksExactRev<'a, T> { /* private fields */ }
Expand description
Const equivalent of core::iter::Rev<core::slice::RChunksExact>
This is constructed with rchunks_exact
like this:
konst::slice::rchunks_exact(slice, 1).rev()
Implementations§
source§impl<'a, T> RChunksExactRev<'a, T>
impl<'a, T> RChunksExactRev<'a, T>
sourcepub const fn rev(self) -> RChunksExact<'a, T>
pub const fn rev(self) -> RChunksExact<'a, T>
Reverses the iterator
sourcepub const fn next(self) -> Option<(&'a [T], Self)>
pub const fn next(self) -> Option<(&'a [T], Self)>
Advances the iterator and returns the next value.
Trait Implementations§
source§impl<'a, T> ConstIntoIter for RChunksExactRev<'a, T>
impl<'a, T> ConstIntoIter for RChunksExactRev<'a, T>
§type Kind = IsIteratorKind
type Kind = IsIteratorKind
What kind of type this is: Read more
§type IntoIter = RChunksExactRev<'a, T>
type IntoIter = RChunksExactRev<'a, T>
The iterator that this can be converted into.
Auto Trait Implementations§
impl<'a, T> Freeze for RChunksExactRev<'a, T>
impl<'a, T> RefUnwindSafe for RChunksExactRev<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for RChunksExactRev<'a, T>where
T: Sync,
impl<'a, T> Sync for RChunksExactRev<'a, T>where
T: Sync,
impl<'a, T> Unpin for RChunksExactRev<'a, T>
impl<'a, T> UnwindSafe for RChunksExactRev<'a, T>where
T: RefUnwindSafe,
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