Lines Matching defs:Lazy
570 pub struct Lazy<T, F = fn() -> T> { struct
576 impl<T, F: RefUnwindSafe> RefUnwindSafe for Lazy<T, F> where OnceCell<T>: RefUnwindSafe {} implementation
578 impl<T: fmt::Debug, F> fmt::Debug for Lazy<T, F> { implementation
584 impl<T, F> Lazy<T, F> { impl
590 /// use once_cell::unsync::Lazy;
615 impl<T, F: FnOnce() -> T> Lazy<T, F> { implementation
638 impl<T, F: FnOnce() -> T> Deref for Lazy<T, F> { implementation
645 impl<T, F: FnOnce() -> T> DerefMut for Lazy<T, F> { implementation
652 impl<T: Default> Default for Lazy<T> { implementation
966 pub struct Lazy<T, F = fn() -> T> { struct
967 cell: OnceCell<T>,
968 init: Cell<Option<F>>,
971 impl<T: fmt::Debug, F> fmt::Debug for Lazy<T, F> { implementation
982 unsafe impl<T, F: Send> Sync for Lazy<T, F> where OnceCell<T>: Sync {} implementation
986 impl<T, F: RefUnwindSafe> RefUnwindSafe for Lazy<T, F> where OnceCell<T>: RefUnwindSafe {} implementation
988 impl<T, F> Lazy<T, F> { impl
1007 impl<T, F: FnOnce() -> T> Lazy<T, F> { implementation
1029 impl<T, F: FnOnce() -> T> Deref for Lazy<T, F> { implementation
1036 impl<T, F: FnOnce() -> T> DerefMut for Lazy<T, F> { implementation
1043 impl<T: Default> Default for Lazy<T> { implementation