[][src]Struct std::slice::ExactChunksMut

pub struct ExactChunksMut<'a, T> where
    T: 'a + 'a, 
{ /* fields omitted */ }
🔬 This is a nightly-only experimental API. (exact_chunks #47115)

An iterator over a slice in (non-overlapping) mutable chunks (chunk_size elements at a time).

When the slice len is not evenly divided by the chunk size, the last up to chunk_size-1 elements will be omitted but can be retrieved from the into_remainder function from the iterator.

This struct is created by the exact_chunks_mut method on slices.

Methods

impl<'a, T> ExactChunksMut<'a, T>
[src]

Important traits for &'a [u8]

🔬 This is a nightly-only experimental API. (exact_chunks #47115)

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-1 elements.

Trait Implementations

impl<'a, T> DoubleEndedIterator for ExactChunksMut<'a, T>
[src]

Removes and returns an element from the end of the iterator. Read more

This is the reverse version of [try_fold()]: it takes elements starting from the back of the iterator. Read more

An iterator method that reduces the iterator's elements to a single, final value, starting from the back. Read more

Searches for an element of an iterator from the back that satisfies a predicate. Read more

impl<'a, T> Iterator for ExactChunksMut<'a, T>
[src]

The type of the elements being iterated over.

Advances the iterator and returns the next value. Read more

Returns the bounds on the remaining length of the iterator. Read more

Consumes the iterator, counting the number of iterations and returning it. Read more

Returns the nth element of the iterator. Read more

Consumes the iterator, returning the last element. Read more

Important traits for StepBy<I>

Creates an iterator starting at the same point, but stepping by the given amount at each iteration. Read more

Important traits for Chain<A, B>

Takes two iterators and creates a new iterator over both in sequence. Read more

Important traits for Zip<A, B>

'Zips up' two iterators into a single iterator of pairs. Read more

Important traits for Map<I, F>

Takes a closure and creates an iterator which calls that closure on each element. Read more

Calls a closure on each element of an iterator. Read more

Important traits for Filter<I, P>

Creates an iterator which uses a closure to determine if an element should be yielded. Read more

Important traits for FilterMap<I, F>

Creates an iterator that both filters and maps. Read more

Important traits for Enumerate<I>

Creates an iterator which gives the current iteration count as well as the next value. Read more