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

pub struct OneThread<T> {
    inner: 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?

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

Fields

🔬 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> OneThread<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?

🔬 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?

🔬 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?

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 W

Dereferences the value.

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

Important traits for &'a mut W

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