pub struct Lazy<T, F = fn() -> T> { /* private fields */ }Implementations§
Trait Implementations§
impl<T, F: FnOnce() -> T + Send + Sync> Send for Lazy<T, F>
impl<T, F: FnOnce() -> T + Send + Sync> Sync for Lazy<T, F>
Auto Trait Implementations§
impl<T, F = fn() -> T> !Freeze for Lazy<T, F>
impl<T, F> RefUnwindSafe for Lazy<T, F>
impl<T, F> Unpin for Lazy<T, F>
impl<T, F> UnsafeUnpin for Lazy<T, F>where
F: UnsafeUnpin,
T: UnsafeUnpin,
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