pub(crate) struct Entry<T> {
pub(crate) present: AtomicBool,
pub(crate) value: UnsafeCell<MaybeUninit<T>>,
}Fields§
§present: AtomicBool§value: UnsafeCell<MaybeUninit<T>>Implementations§
Source§impl<T> Entry<T>
impl<T> Entry<T>
pub(crate) fn get_value_cell(&self) -> Option<&UnsafeCell<MaybeUninit<T>>>
Trait Implementations§
Auto Trait Implementations§
impl<T> !Freeze for Entry<T>
impl<T> !RefUnwindSafe for Entry<T>
impl<T> Send for Entry<T>where
T: Send,
impl<T> !Sync for Entry<T>
impl<T> Unpin for Entry<T>where
T: Unpin,
impl<T> UnsafeUnpin for Entry<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Entry<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