Lines Matching refs:AtomicLazyCell
249 pub struct AtomicLazyCell<T> { struct
254 impl<T> AtomicLazyCell<T> { argument
262 pub fn new() -> AtomicLazyCell<T> { in new()
328 impl<T: Copy> AtomicLazyCell<T> { impl
341 impl<T> Default for AtomicLazyCell<T> { implementation
347 impl<T: Clone> Clone for AtomicLazyCell<T> { implementation
353 fn clone(&self) -> AtomicLazyCell<T> { in clone()
356 |v| AtomicLazyCell { in clone()
364 unsafe impl<T: Sync + Send> Sync for AtomicLazyCell<T> {} implementation
366 unsafe impl<T: Send> Send for AtomicLazyCell<T> {} implementation
370 use super::{AtomicLazyCell, LazyCell};
569 let lazycell: AtomicLazyCell<usize> = AtomicLazyCell::new(); in test_atomic_borrow_from_empty()
580 let lazycell = AtomicLazyCell::new(); in test_atomic_fill_and_borrow()
595 let lazycell = AtomicLazyCell::new(); in test_atomic_already_filled_panic()
603 let lazycell = AtomicLazyCell::new(); in test_atomic_into_inner()
624 let mut cell = AtomicLazyCell::new(); in atomic_replace()
652 let mut cell = AtomicLazyCell::new(); in clone_atomic()
678 let _: AtomicLazyCell<Defaultable> = AtomicLazyCell::default(); in default()
679 let _: AtomicLazyCell<NonDefaultable> = AtomicLazyCell::default(); in default()