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