Struct ChunkBy

pub struct ChunkBy<'data, T, P> { /* private fields */ }

Parallel iterator over slice in (non-overlapping) chunks separated by a predicate.

This struct is created by the par_chunk_by method on &[T].

Trait Implementations

impl<'data, T, P> ParallelIterator for ChunkBy<'data, T, P> where T: Sync, P: Fn(&T, &T) -> bool + Send + Sync,

type Item = &'data [T];
fn drive_unindexed<C>(self, consumer: C) -> C::Result
where
    C: UnindexedConsumer<Self::Item>,

impl<T, P: Clone> Clone for ChunkBy<'_, T, P>

fn clone(&self) -> Self

impl<T: Debug, P> Debug for ChunkBy<'_, T, P>

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

Auto Trait Implementations

impl<'data, T, P> Freeze for ChunkBy<'data, T, P> where P: Freeze, &'data [T]: Freeze,

impl<'data, T, P> RefUnwindSafe for ChunkBy<'data, T, P> where P: RefUnwindSafe, &'data [T]: RefUnwindSafe,

impl<'data, T, P> Send for ChunkBy<'data, T, P> where P: Send, &'data [T]: Send,

impl<'data, T, P> Sync for ChunkBy<'data, T, P> where P: Sync, &'data [T]: Sync,

impl<'data, T, P> Unpin for ChunkBy<'data, T, P> where P: Unpin, &'data [T]: Unpin,

impl<'data, T, P> UnsafeUnpin for ChunkBy<'data, T, P> where P: UnsafeUnpin, &'data [T]: UnsafeUnpin,

impl<'data, T, P> UnwindSafe for ChunkBy<'data, T, P> where P: UnwindSafe, &'data [T]: UnwindSafe,

Blanket Implementations

impl<T> Any for ChunkBy<'data, T, P> where T: 'static + ?Sized,

impl<T> Borrow<T> for ChunkBy<'data, T, P> where T: ?Sized,

impl<T> BorrowMut<T> for ChunkBy<'data, T, P> where T: ?Sized,

impl<T> CloneToUninit for ChunkBy<'data, T, P> where T: Clone,

impl<T> From<T> for ChunkBy<'data, T, P>

impl<T> IntoEither for ChunkBy<'data, T, P>

impl<T> IntoParallelIterator for ChunkBy<'data, T, P> where T: ParallelIterator,

impl<T> Pointable for ChunkBy<'data, T, P>

impl<T> ToOwned for ChunkBy<'data, T, P> where T: Clone,

impl<T, U> Into<U> for ChunkBy<'data, T, P> where U: From<T>,

impl<T, U> TryFrom<U> for ChunkBy<'data, T, P> where U: Into<T>,

impl<T, U> TryInto<U> for ChunkBy<'data, T, P> where U: TryFrom<T>,