pub struct LazyWrap<T, F = &'static dyn Fn() -> T> { /* private fields */ }Implementations§
Trait Implementations§
impl<T, F> RefUnwindSafe for LazyWrap<T, F>where
T: RefUnwindSafe,
impl<T, F> Send for LazyWrap<T, F>where
T: Send,
impl<T, F> Sync for LazyWrap<T, F>where
T: Sync,
impl<T, F> Unpin for LazyWrap<T, F>where
T: Unpin,
impl<T, F> UnwindSafe for LazyWrap<T, F>where
T: 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