Lines Matching defs:Lazy
687 pub struct Lazy<T, F = fn() -> T> { struct
692 impl<T, F: RefUnwindSafe> RefUnwindSafe for Lazy<T, F> where OnceCell<T>: RefUnwindSafe {} implementation
694 impl<T: fmt::Debug, F> fmt::Debug for Lazy<T, F> { implementation
700 impl<T, F> Lazy<T, F> { impl
706 /// use once_cell::unsync::Lazy;
731 impl<T, F: FnOnce() -> T> Lazy<T, F> { implementation
807 impl<T, F: FnOnce() -> T> Deref for Lazy<T, F> { implementation
814 impl<T, F: FnOnce() -> T> DerefMut for Lazy<T, F> { implementation
821 impl<T: Default> Default for Lazy<T> { implementation
1223 pub struct Lazy<T, F = fn() -> T> { struct
1224 cell: OnceCell<T>,
1225 init: Cell<Option<F>>,
1228 impl<T: fmt::Debug, F> fmt::Debug for Lazy<T, F> { implementation
1238 unsafe impl<T, F: Send> Sync for Lazy<T, F> where OnceCell<T>: Sync {} implementation
1241 impl<T, F: RefUnwindSafe> RefUnwindSafe for Lazy<T, F> where OnceCell<T>: RefUnwindSafe {} implementation
1243 impl<T, F> Lazy<T, F> { implementation
1262 impl<T, F: FnOnce() -> T> Lazy<T, F> { implementation
1335 impl<T, F: FnOnce() -> T> Deref for Lazy<T, F> { implementation
1342 impl<T, F: FnOnce() -> T> DerefMut for Lazy<T, F> { implementation
1349 impl<T: Default> Default for Lazy<T> { implementation