pub struct Lazy<T, F = Pin<Box<dyn Future<Output = T> + Send>>> { /* private fields */ }
Expand description
Lazy cell which is only instantiated upon first retreival of contained value
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T, F = Pin<Box<dyn Future<Output = T> + Send>>> !Freeze for Lazy<T, F>
impl<T, F = Pin<Box<dyn Future<Output = T> + Send>>> !RefUnwindSafe for Lazy<T, F>
impl<T, F> Send for Lazy<T, F>
impl<T, F> Sync for Lazy<T, F>
impl<T, F> Unpin for Lazy<T, F>
impl<T, F> UnwindSafe for Lazy<T, F>where
T: UnwindSafe,
F: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more