Struct rustc_data_structures::sync::WorkerLocal[][src]

pub struct WorkerLocal<T>(_);

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.

Important traits for Vec<u8>

Returns the worker-local value for each thread

Trait Implementations

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.

Important traits for &'a mut R

Dereferences the value.

Auto Trait Implementations

impl<T> Send for WorkerLocal<T> where
    T: Send

impl<T> Sync for WorkerLocal<T> where
    T: Sync