Struct rustc_data_structures::sync::WorkerLocal [−][src]
pub struct WorkerLocal<T>(OneThread<T>);
Tuple Fields
0: OneThread<T>
Implementations
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
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for WorkerLocal<T> where
T: RefUnwindSafe,
impl<T> Send for WorkerLocal<T> where
T: Send,
impl<T> Sync for WorkerLocal<T> where
T: Sync,
impl<T> Unpin for WorkerLocal<T> where
T: Unpin,
impl<T> UnwindSafe for WorkerLocal<T> where
T: UnwindSafe,
Blanket Implementations
Layout
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.