Struct RChunksExactMut
pub struct RChunksExactMut<'data, T: Send> { /* private fields */ }
Parallel iterator over mutable non-overlapping chunks of a slice, starting at the end.
Implementations
impl<'data, T: Send> RChunksExactMut<'data, T>
fn into_remainder(self) -> &'data mut [T]Return the remainder of the original slice that is not going to be returned by the iterator. The returned slice has at most
chunk_size-1elements.Note that this has to consume
selfto return the original lifetime of the data, which prevents this from actually being used as a parallel iterator since that also consumes. This method is provided for parity withstd::iter::RChunksExactMut, but consider callingremainder()ortake_remainder()as alternatives.fn remainder(&mut self) -> &mut [T]Return the remainder of the original slice that is not going to be returned by the iterator. The returned slice has at most
chunk_size-1elements.Consider
take_remainder()if you need access to the data with its original lifetime, rather than borrowing through&mut selfhere.fn take_remainder(&mut self) -> &'data mut [T]Return the remainder of the original slice that is not going to be returned by the iterator. The returned slice has at most
chunk_size-1elements. Subsequent calls will return an empty slice.
Trait Implementations
impl<'data, T: Debug + Send> Debug for RChunksExactMut<'data, T>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<'data, T: Send + 'data> IndexedParallelIterator for RChunksExactMut<'data, T>
fn drive<C>(self, consumer: C) -> C::Result where C: Consumer<Self::Item>,fn len(&self) -> usizefn with_producer<CB>(self, callback: CB) -> CB::Output where CB: ProducerCallback<Self::Item>,
impl<'data, T: Send + 'data> ParallelIterator for RChunksExactMut<'data, T>
type Item = &'data mut [T];fn drive_unindexed<C>(self, consumer: C) -> C::Result where C: UnindexedConsumer<Self::Item>,fn opt_len(&self) -> Option<usize>