Lines Matching refs:OnceLock
27 pub struct OnceLock<T> { struct
33 unsafe impl<T: Send> Send for OnceLock<T> {} argument
34 unsafe impl<T: Sync> Sync for OnceLock<T> {} implementation
40 impl<T> OnceLock<T> { implementation
41 pub const fn new() -> OnceLock<T> { in new()
42 OnceLock { in new()
102 impl<T> Drop for OnceLock<T> { implementation
111 impl<T> Default for OnceLock<T> { implementation
112 fn default() -> OnceLock<T> { in default()
113 OnceLock::new() in default()
408 let lock = OnceLock::new(); in smoke_once_lock()
415 let lock = OnceLock::new(); in smoke_once_lock()
419 let lock = OnceLock::new(); in smoke_once_lock()