Struct rustc_ap_rustc_data_structures::sync::OneThread [−][src]
pub struct OneThread<T> { /* fields omitted */ }
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.
Implementations
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for OneThread<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for OneThread<T> where
T: UnwindSafe,