[][src]Function par_array_init::from_par_iter

pub fn from_par_iter<Array, I>(into_iter: I) -> Option<Array> where
    I: IntoParallelIterator<Item = Array::Item>,
    I::Iter: IndexedParallelIterator<Item = Array::Item>,
    Array: IsParArray,
    Array::Item: Copy + Send + Sync

Initialize an array given a parallel iterator.

IndexedParallelIterator is required (as opposed to just ParallelIterator) so we know we have atleast as many elements as array length.

Takes elements from the iterator until the Array is full, returns full array on completion. Returns None if there are not enough elements.