Home
last modified time | relevance | path

Searched defs:OnceCell (Results 1 – 4 of 4) sorted by relevance

/third_party/rust/crates/once_cell/src/
Dimp_cs.rs8 pub(crate) struct OnceCell<T> { struct
10 // Use `unsync::OnceCell` internally since `Mutex` does not provide argument
12 value: Mutex<unsync::OnceCell<T>>, argument
20 unsafe impl<T: Sync + Send> Sync for OnceCell<T> {} implementation
21 unsafe impl<T: Send> Send for OnceCell<T> {} implementation
23 impl<T: RefUnwindSafe + UnwindSafe> RefUnwindSafe for OnceCell<T> {} implementation
24 impl<T: UnwindSafe> UnwindSafe for OnceCell<T> {} implementation
26 impl<T> OnceCell<T> { implementation
Dimp_pl.rs7 pub(crate) struct OnceCell<T> { struct
17 // Thread A creates a `OnceCell` and shares it with argument
21 unsafe impl<T: Sync + Send> Sync for OnceCell<T> {} implementation
22 unsafe impl<T: Send> Send for OnceCell<T> {} implementation
24 impl<T: RefUnwindSafe + UnwindSafe> RefUnwindSafe for OnceCell<T> {} implementation
25 impl<T: UnwindSafe> UnwindSafe for OnceCell<T> {} implementation
27 impl<T> OnceCell<T> { impl
Dimp_std.rs15 pub(crate) struct OnceCell<T> { struct
30 // Thread A creates a `OnceCell` and shares it with argument
34 unsafe impl<T: Sync + Send> Sync for OnceCell<T> {} implementation
35 unsafe impl<T: Send> Send for OnceCell<T> {} implementation
37 impl<T: RefUnwindSafe + UnwindSafe> RefUnwindSafe for OnceCell<T> {} implementation
38 impl<T: UnwindSafe> UnwindSafe for OnceCell<T> {} implementation
40 impl<T> OnceCell<T> { impl
307 impl<T> OnceCell<T> { impl
Dlib.rs384 pub struct OnceCell<T> { struct
390 // `&unsync::OnceCell` to sneak a `T` through `catch_unwind`,
393 impl<T: RefUnwindSafe + UnwindSafe> RefUnwindSafe for OnceCell<T> {} implementation
394 impl<T: UnwindSafe> UnwindSafe for OnceCell<T> {} implementation
396 impl<T> Default for OnceCell<T> { implementation
402 impl<T: fmt::Debug> fmt::Debug for OnceCell<T> { implementation
411 impl<T: Clone> Clone for OnceCell<T> { implementation
427 impl<T: PartialEq> PartialEq for OnceCell<T> { implementation
433 impl<T: Eq> Eq for OnceCell<T> {} implementation
435 impl<T> From<T> for OnceCell<T> { implementation
[all …]