Struct IntoChunks

#[must_use = "iterator adaptors are lazy and do nothing unless consumed"]
pub struct IntoChunks<I>
where
    I: Iterator, { /* private fields */ }

IntoChunks is the storage for a lazy chunking operation.

IntoChunks behaves just like ChunkBy: it is iterable, and it only buffers if several chunk iterators are alive at the same time.

This type implements IntoIterator (it is not an iterator itself), because the chunk iterators need to borrow from this value. It should be stored in a local variable or temporary and iterated.

Iterator element type is Chunk, each chunk's iterator.

See .chunks() for more information.

Trait Implementations

impl<I> Clone for IntoChunks<I> where I: Clone + Iterator, I::Item: Clone,

fn clone(&self) -> Self

impl<I> Debug for IntoChunks<I> where I: Iterator + Debug, I::Item: Debug,

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Auto Trait Implementations

impl<I> !Freeze for IntoChunks<I>

impl<I> !RefUnwindSafe for IntoChunks<I>

impl<I> !Sync for IntoChunks<I>

impl<I> Send for IntoChunks<I> where RefCell<GroupInner<usize, I, ChunkIndex>>: Send,

impl<I> Unpin for IntoChunks<I> where RefCell<GroupInner<usize, I, ChunkIndex>>: Unpin,

impl<I> UnsafeUnpin for IntoChunks<I> where RefCell<GroupInner<usize, I, ChunkIndex>>: UnsafeUnpin,

impl<I> UnwindSafe for IntoChunks<I> where RefCell<GroupInner<usize, I, ChunkIndex>>: UnwindSafe,

Blanket Implementations

impl<T> Any for IntoChunks<I> where T: 'static + ?Sized,

impl<T> Borrow<T> for IntoChunks<I> where T: ?Sized,

impl<T> BorrowMut<T> for IntoChunks<I> where T: ?Sized,

impl<T> CloneToUninit for IntoChunks<I> where T: Clone,

impl<T> From<T> for IntoChunks<I>

impl<T> IntoEither for IntoChunks<I>

impl<T> ToOwned for IntoChunks<I> where T: Clone,

impl<T, U> Into<U> for IntoChunks<I> where U: From<T>,

impl<T, U> TryFrom<U> for IntoChunks<I> where U: Into<T>,

impl<T, U> TryInto<U> for IntoChunks<I> where U: TryFrom<T>,