Skip to main content

ZipChunks

Struct ZipChunks 

Source
pub struct ZipChunks<'data, T: Send, I: Iterator> { /* private fields */ }
Expand description

Zips ChunksMut with any iterator. The shorter side determines how many pairs are produced (like Iterator::zip).

Trait Implementations§

Source§

impl<'data, T, I> ParallelZonedIterator for ZipChunks<'data, T, I>
where T: Send, I: Iterator + Send, I::Item: Send,

Source§

type Item = (&'data mut [T], <I as Iterator>::Item)

The type of item that this parallel iterator produces. For example, if you use the for_each method, this is the type of item that your closure will be invoked with.
Source§

fn for_each<'scope, F>(self, pool: &ThreadPool, f: F)
where F: 'scope + Fn(Self::Item) + Send + Sync,

Source§

fn for_each_enumerated<'scope, F>(self, pool: &ThreadPool, f: F)
where F: 'scope + Fn(usize, Self::Item) + Send + Sync,

Auto Trait Implementations§

§

impl<'data, T, I> Freeze for ZipChunks<'data, T, I>
where I: Freeze,

§

impl<'data, T, I> RefUnwindSafe for ZipChunks<'data, T, I>

§

impl<'data, T, I> Send for ZipChunks<'data, T, I>
where I: Send,

§

impl<'data, T, I> Sync for ZipChunks<'data, T, I>
where I: Sync, T: Sync,

§

impl<'data, T, I> Unpin for ZipChunks<'data, T, I>
where I: Unpin,

§

impl<'data, T, I> UnsafeUnpin for ZipChunks<'data, T, I>
where I: UnsafeUnpin,

§

impl<'data, T, I> !UnwindSafe for ZipChunks<'data, T, I>

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

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

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

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

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.