Struct rayon::par_iter::slice_mut::SliceIterMut [] [src]

pub struct SliceIterMut<'data, T: 'data + Send> {
    // some fields omitted
}

Trait Implementations

impl<'data, T: Send + 'data> ParallelIterator for SliceIterMut<'data, T>
[src]

[]

Indicates the relative "weight" of producing each item in this parallel iterator. A higher weight will cause finer-grained parallel subtasks. 1.0 indicates something very cheap and uniform, like copying a value out of an array, or computing x + 1. If your tasks are either very expensive, or very unpredictable, you are better off with higher values. See also weight_max, which is a convenient shorthand to force the finest grained parallel execution posible. Tuning this value should not affect correctness but can improve (or hurt) performance. Read more

[]

Shorthand for self.weight(f64::INFINITY). This forces the smallest granularity of parallel execution, which makes sense when your parallel tasks are (potentially) very expensive to execute. Read more

[]

Executes OP on each item produced by the iterator, in parallel.

[]

Applies map_op to each item of this iterator, producing a new iterator with the results. Read more

[]

Creates an iterator which clones all of its elements. This may be useful when you have an iterator over &T, but you need T. Read more

[]

Applies inspect_op to a reference to each item of this iterator, producing a new iterator passing through the original items. This is often useful for debugging to see what's happening in iterator stages. Read more

[]

Applies filter_op to each item of this iterator, producing a new iterator with only the items that gave true results. Read more

[]

Applies filter_op to each item of this iterator to get an Option, producing a new iterator with only the items from Some results. Read more

[]

Applies map_op to each item of this iterator to get nested iterators, producing a new iterator that flattens these back into one. Read more

[]

Reduces the items in the iterator into one item using op. See also sum, mul, min, etc, which are slightly more efficient. Returns None if the iterator is empty. Read more

[]

Reduces the items in the iterator into one item using op. The argument identity represents an "identity" value which may be inserted into the sequence as needed to create opportunities for parallel execution. So, for example, if you are doing a summation, then identity ought to be something that represents the zero for your type (but consider just calling sum() in that case). Read more

[]

Sums up the items in the iterator. Read more

[]

Multiplies all the items in the iterator. Read more

[]

Computes the minimum of all the items in the iterator. Read more

[]

Computes the maximum of all the items in the iterator. Read more

[]

Reduces the items using the given "reduce operator". You may prefer reduce_with for a simpler interface. Read more

impl<'data, T: Send + 'data> BoundedParallelIterator for SliceIterMut<'data, T>
[src]

impl<'data, T: Send + 'data> ExactParallelIterator for SliceIterMut<'data, T>
[src]

[]

Produces an exact count of how many items this iterator will produce, presuming no panic occurs. Read more

[]

Collects the results of the iterator into the specified vector. The vector is always truncated before execution begins. If possible, reusing the vector across calls can lead to better performance since it reuses the same backing buffer. Read more

impl<'data, T: Send + 'data> IndexedParallelIterator for SliceIterMut<'data, T>
[src]

[]

Iterate over tuples (A, B), where the items A are from this iterator and B are from the iterator given as argument. Like the zip method on ordinary iterators, if the two iterators are of unequal length, you only get the items they have in common. Read more

[]

Yields an index along with each item.