pub struct Lazy<F, T>(_)
where
F: FnOnce() -> T;
Expand description
Lazily evaluated value supplied by a closure.
Implementations
Auto Trait Implementations
impl<F, T> RefUnwindSafe for Lazy<F, T>where
F: RefUnwindSafe,
T: RefUnwindSafe,
impl<F, T> Send for Lazy<F, T>where
F: Send,
T: Send,
impl<F, T> Sync for Lazy<F, T>where
F: Sync,
T: Sync,
impl<F, T> Unpin for Lazy<F, T>where
F: Unpin,
T: Unpin,
impl<F, T> UnwindSafe for Lazy<F, T>where
F: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more