pub struct LazyWrap<T, F = fn() -> T> { /* private fields */ }
Implementations§
Source§impl<T, F> LazyWrap<T, F>where
F: FnOnce() -> T,
impl<T, F> LazyWrap<T, F>where
F: FnOnce() -> T,
pub const fn new(init: F) -> Self
pub fn ensure_initialised(this: &Self)
pub fn is_initialised(this: &Self) -> bool
pub fn into_inner(this: Self) -> LazyWrapState<T, F>
pub fn into_inner_initialised(this: Self) -> T
Trait Implementations§
impl<T, F> RefUnwindSafe for LazyWrap<T, F>where
T: RefUnwindSafe,
F: UnwindSafe,
impl<T, F> Send for LazyWrap<T, F>
impl<T, F> Sync for LazyWrap<T, F>
impl<T, F> Unpin for LazyWrap<T, F>
impl<T, F> UnwindSafe for LazyWrap<T, F>where
T: UnwindSafe,
F: UnwindSafe,
Auto Trait Implementations§
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