• Home
  • Raw
  • Download

Lines Matching refs:LazyCell

62 pub struct LazyCell<T> {  struct
66 impl<T> LazyCell<T> { implementation
68 pub fn new() -> LazyCell<T> { in new()
69 LazyCell { inner: UnsafeCell::new(None) } in new()
208 impl<T: Copy> LazyCell<T> { impl
218 impl <T: Clone> Clone for LazyCell<T> { implementation
224 fn clone(&self) -> LazyCell<T> { in clone()
225 LazyCell { inner: UnsafeCell::new(self.borrow().map(Clone::clone) ) } in clone()
351 use super::{AtomicLazyCell, LazyCell};
355 let lazycell: LazyCell<usize> = LazyCell::new(); in test_borrow_from_empty()
366 let lazycell = LazyCell::new(); in test_fill_and_borrow()
381 let mut lazycell = LazyCell::new(); in test_borrow_mut()
391 lazycell = LazyCell::new(); in test_borrow_mut()
397 let lazycell = LazyCell::new(); in test_already_filled_error()
405 let lazycell = LazyCell::new(); in test_borrow_with()
413 let lazycell = LazyCell::new(); in test_borrow_with_already_filled()
422 let lazycell = LazyCell::new(); in test_borrow_with_not_called_when_filled()
435 let lazycell: LazyCell<Box<i32>> = LazyCell::new(); in test_borrow_with_sound_with_reentrancy()
448 let mut lazycell = LazyCell::new(); in test_borrow_mut_with()
460 let mut lazycell = LazyCell::new(); in test_borrow_mut_with_already_filled()
469 let mut lazycell = LazyCell::new(); in test_borrow_mut_with_not_called_when_filled()
479 let lazycell = LazyCell::new(); in test_try_borrow_with_ok()
486 let lazycell = LazyCell::<()>::new(); in test_try_borrow_with_err()
493 let lazycell = LazyCell::new(); in test_try_borrow_with_already_filled()
502 let lazycell: LazyCell<Box<i32>> = LazyCell::new(); in test_try_borrow_with_sound_with_reentrancy()
515 let mut lazycell = LazyCell::new(); in test_try_borrow_mut_with_ok()
526 let mut lazycell = LazyCell::<()>::new(); in test_try_borrow_mut_with_err()
533 let mut lazycell = LazyCell::new(); in test_try_borrow_mut_with_already_filled()
541 let lazycell = LazyCell::new(); in test_into_inner()
593 let mut cell = LazyCell::new(); in normal_replace()
599 let mut cell = LazyCell::new(); in normal_replace()
614 let mut cell = LazyCell::new(); in clone()