Home
last modified time | relevance | path

Searched refs:ThreadBound (Results 1 - 2 of 2) sorted by relevance

/third_party/rust/crates/syn/src/
H A Dthread.rs4 /// ThreadBound is a Sync-maker and Send-maker that allows accessing a value
5 /// of type T only from the original thread on which the ThreadBound was
7 pub(crate) struct ThreadBound<T> {
12 unsafe impl<T> Sync for ThreadBound<T> {}
18 unsafe impl<T: Copy> Send for ThreadBound<T> {}
20 impl<T> ThreadBound<T> { impls
22 ThreadBound {
37 impl<T: Debug> Debug for ThreadBound<T> {
54 impl<T: Copy> Copy for ThreadBound<T> {}
56 impl<T: Copy> Clone for ThreadBound<
[all...]
H A Derror.rs3 use crate::thread::ThreadBound;
110 span: ThreadBound<SpanRange>,
115 // whereas ThreadBound<T> requires a Copy impl as a way to ensure no Drop impls
164 span: ThreadBound::new(SpanRange { in new()
198 span: ThreadBound::new(SpanRange { start, end }), in new_spanned()
343 span: ThreadBound::new(SpanRange { start, end }), in new2()

Completed in 2 milliseconds