Struct ChunkByMut

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

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

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

Trait Implementations

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

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

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

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

Auto Trait Implementations

impl<'data, T, P> !UnwindSafe for ChunkByMut<'data, T, P>

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

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

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

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

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

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

Blanket Implementations

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

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

fn borrow_mut(&mut self) -> &mut T

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

fn from(t: T) -> T

Returns the argument unchanged.

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

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

type Iter = T;
type Item = <T as ParallelIterator>::Item;
fn into_par_iter(self) -> T

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

const ALIGN: usize = _;
type Init = T;
unsafe fn init(init: <T as Pointable>::Init) -> usize
unsafe fn deref<'a>(ptr: usize) -> &'a T
unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
unsafe fn drop(ptr: usize)

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

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

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

type Error = never;
fn try_from(value: U) -> Result<T, never>

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

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>