Struct rustc_data_structures::sync::WorkerLocal [−][src]
pub struct WorkerLocal<T>(_);
Methods
impl<T> WorkerLocal<T>
[src]
impl<T> WorkerLocal<T>
pub fn new<F: FnMut(usize) -> T>(f: F) -> WorkerLocal<T>
[src]
pub fn new<F: FnMut(usize) -> T>(f: F) -> WorkerLocal<T>
Creates a new worker local where the initial
closure computes the
value this worker local should take for each thread in the thread pool.
pub fn into_inner(self) -> Vec<T>
[src]
pub fn into_inner(self) -> Vec<T>
Returns the worker-local value for each thread
Trait Implementations
impl<T: Debug> Debug for WorkerLocal<T>
[src]
impl<T: Debug> Debug for WorkerLocal<T>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T> Deref for WorkerLocal<T>
[src]
impl<T> Deref for WorkerLocal<T>
Auto Trait Implementations
impl<T> Send for WorkerLocal<T> where
T: Send,
impl<T> Send for WorkerLocal<T> where
T: Send,
impl<T> Sync for WorkerLocal<T> where
T: Sync,
impl<T> Sync for WorkerLocal<T> where
T: Sync,