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

pub struct WorkerLocal<T>(OneThread<T>);
🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

Methods

impl<T> WorkerLocal<T>
[src]

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

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>

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

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