Struct rustc_rayon_core::WorkerLocal[][src]

pub struct WorkerLocal<T> { /* fields omitted */ }

Holds worker-locals values for each thread in a thread pool. You can only access the worker local value through the Deref impl on the thread pool it was constructed on. It will panic otherwise

Methods

impl<T> WorkerLocal<T>
[src]

Creates a new worker local where the initial closure computes the value this worker local should take for each thread in the thread pool.

Returns the worker-local value for each thread

impl<T> WorkerLocal<Vec<T>>
[src]

Joins the elements of all the worker locals into one Vec

Trait Implementations

impl<T> Send for WorkerLocal<T>
[src]

impl<T> Sync for WorkerLocal<T>
[src]

impl<T: Debug> Debug for WorkerLocal<T>
[src]

Formats the value using the given formatter. Read more

impl<T> Deref for WorkerLocal<T>
[src]

The resulting type after dereferencing.

Dereferences the value.