Struct rustc_ap_rustc_data_structures::sync::WorkerLocal[][src]

pub struct WorkerLocal<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.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

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.