Struct rustc_data_structures::sync::OneThread [−][src]
pub struct OneThread<T> {
inner: T,
}
Expand description
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
inner: T
Implementations
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for OneThread<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for OneThread<T> where
T: UnwindSafe,
Blanket Implementations
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.