pub struct LazyCell<T, I = fn() -> T> { /* private fields */ }
Expand description
A lazily instantiated cell
Implementations§
Source§impl<T, I> LazyCell<T, I>
impl<T, I> LazyCell<T, I>
Auto Trait Implementations§
impl<T, I = fn() -> T> !Freeze for LazyCell<T, I>
impl<T, I = fn() -> T> !RefUnwindSafe for LazyCell<T, I>
impl<T, I> Send for LazyCell<T, I>
impl<T, I = fn() -> T> !Sync for LazyCell<T, I>
impl<T, I> Unpin for LazyCell<T, I>
impl<T, I> UnwindSafe for LazyCell<T, I>where
I: UnwindSafe,
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