Struct FoldChunks
#[must_use = "iterator adaptors are lazy and do nothing unless consumed"]
pub struct FoldChunks<I, ID, F> { /* private fields */ }
FoldChunks is an iterator that groups elements of an underlying iterator and applies a
function over them, producing a single value for each group.
This struct is created by the fold_chunks() method on IndexedParallelIterator
Trait Implementations
impl<I, ID, U, F> IndexedParallelIterator for FoldChunks<I, ID, F>
where
I: IndexedParallelIterator,
ID: Fn() -> U + Send + Sync,
F: Fn(U, I::Item) -> U + Send + Sync,
U: Send,
fn len(&self) -> usizefn drive<C>(self, consumer: C) -> C::Result where C: Consumer<Self::Item>,fn with_producer<CB>(self, callback: CB) -> CB::Output where CB: ProducerCallback<Self::Item>,
impl<I, ID, U, F> ParallelIterator for FoldChunks<I, ID, F>
where
I: IndexedParallelIterator,
ID: Fn() -> U + Send + Sync,
F: Fn(U, I::Item) -> U + Send + Sync,
U: Send,
type Item = U;fn drive_unindexed<C>(self, consumer: C) -> C::Result where C: Consumer<U>,fn opt_len(&self) -> Option<usize>
impl<I: Clone, ID: Clone, F: Clone> Clone for FoldChunks<I, ID, F>
fn clone(&self) -> FoldChunks<I, ID, F>
impl<I: Debug, ID, F> Debug for FoldChunks<I, ID, F>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Auto Trait Implementations
impl<I, ID, F> Freeze for FoldChunks<I, ID, F>
where
I: Freeze,
F: Freeze,
ID: Freeze,
impl<I, ID, F> RefUnwindSafe for FoldChunks<I, ID, F>
where
I: RefUnwindSafe,
F: RefUnwindSafe,
ID: RefUnwindSafe,
impl<I, ID, F> Send for FoldChunks<I, ID, F>
where
I: Send,
F: Send,
ID: Send,
impl<I, ID, F> Sync for FoldChunks<I, ID, F>
where
I: Sync,
F: Sync,
ID: Sync,
impl<I, ID, F> Unpin for FoldChunks<I, ID, F>
where
I: Unpin,
F: Unpin,
ID: Unpin,
impl<I, ID, F> UnsafeUnpin for FoldChunks<I, ID, F>
where
I: UnsafeUnpin,
F: UnsafeUnpin,
ID: UnsafeUnpin,
impl<I, ID, F> UnwindSafe for FoldChunks<I, ID, F>
where
I: UnwindSafe,
F: UnwindSafe,
ID: UnwindSafe,
Blanket Implementations
impl<T> Any for FoldChunks<I, ID, F>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for FoldChunks<I, ID, F>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for FoldChunks<I, ID, F>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for FoldChunks<I, ID, F>
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for FoldChunks<I, ID, F>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> IntoEither for FoldChunks<I, ID, F>
impl<T> IntoParallelIterator for FoldChunks<I, ID, F>
where
T: ParallelIterator,
type Iter = T;type Item = <T as ParallelIterator>::Item;fn into_par_iter(self) -> T
impl<T> Pointable for FoldChunks<I, ID, F>
const ALIGN: usize = _;type Init = T;unsafe fn init(init: <T as Pointable>::Init) -> usizeunsafe fn deref<'a>(ptr: usize) -> &'a Tunsafe fn deref_mut<'a>(ptr: usize) -> &'a mut Tunsafe fn drop(ptr: usize)
impl<T> ToOwned for FoldChunks<I, ID, F>
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for FoldChunks<I, ID, F>
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 FoldChunks<I, ID, F>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for FoldChunks<I, ID, F>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>