pub struct Slot<T> { /* private fields */ }Expand description
A slot that can hold a value, with lazy initialization.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Forget for Slot<T>
impl<T> Freeze for Slot<T>
impl<T> Move for Slot<T>
impl<T> RefUnwindSafe for Slot<T>where
Option<T>: RefUnwindSafe,
impl<T> Send for Slot<T>
impl<T> Sync for Slot<T>
impl<T> Unpin for Slot<T>
impl<T> UnsafeUnpin for Slot<T>where
Option<T>: UnsafeUnpin,
impl<T> UnwindSafe for Slot<T>where
Option<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