pub enum LazyWrapState<T, F> {
Initialised(T),
Uninitialised(F),
}
Expand description
Returned by LazyWrap::into_inner
, containing the initialised value if
its already initialised, or otherwise the initialisation function.
Variants§
Initialised(T)
Contains previously initialised value
Uninitialised(F)
Value is not initialised, contains initialisation function.
Auto Trait Implementations§
impl<T, F> Freeze for LazyWrapState<T, F>
impl<T, F> RefUnwindSafe for LazyWrapState<T, F>where
T: RefUnwindSafe,
F: RefUnwindSafe,
impl<T, F> Send for LazyWrapState<T, F>
impl<T, F> Sync for LazyWrapState<T, F>
impl<T, F> Unpin for LazyWrapState<T, F>
impl<T, F> UnwindSafe for LazyWrapState<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