pub(crate) struct LazyCell<T> {
contents: UnsafeCell<Option<T>>,
}
Fields§
§contents: UnsafeCell<Option<T>>
Implementations§
Auto Trait Implementations§
impl<T> !Freeze for LazyCell<T>
impl<T> !RefUnwindSafe for LazyCell<T>
impl<T> Send for LazyCell<T>where
T: Send,
impl<T> !Sync for LazyCell<T>
impl<T> Unpin for LazyCell<T>where
T: Unpin,
impl<T> UnwindSafe for LazyCell<T>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