Struct rustc_data_structures::sync::OneThread[][src]

pub struct OneThread<T> { /* fields omitted */ }

A type which only allows its inner value to be used in one thread. It will panic if it is used on multiple threads.

Methods

impl<T> OneThread<T>
[src]

Trait Implementations

impl<T: Copy> Copy for OneThread<T>
[src]

impl<T: Clone> Clone for OneThread<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Hash> Hash for OneThread<T>
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl<T: Debug> Debug for OneThread<T>
[src]

Formats the value using the given formatter. Read more

impl<T: Eq> Eq for OneThread<T>
[src]

impl<T: PartialEq> PartialEq for OneThread<T>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T> Deref for OneThread<T>
[src]

The resulting type after dereferencing.

Important traits for &'a mut R

Dereferences the value.

impl<T> DerefMut for OneThread<T>
[src]

Important traits for &'a mut R

Mutably dereferences the value.

Auto Trait Implementations

impl<T> Send for OneThread<T> where
    T: Send

impl<T> Sync for OneThread<T> where
    T: Sync