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

Formats the value using the given formatter. Read more

The resulting type after dereferencing.

Dereferences the value.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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.