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,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for IntoChunks<I>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for IntoChunks<I>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for IntoChunks<I>
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for IntoChunks<I>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> IntoEither for IntoChunks<I>
impl<T> ToOwned for IntoChunks<I>
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for IntoChunks<I>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for IntoChunks<I>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for IntoChunks<I>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>