Equivalent to an
UnsafeCell<MaybeUninit<T>>, this cell may hold uninitialized data.
Maybe<T> this structure is suited for data types with no
Create a new, empty
Create a new, populated
Access the contained value as a constant pointer.
pub fn as_mut_ptr(&mut self) -> *mut T[src]
Access the contained value as a mutable pointer.
Obtain a reference to the contained value. This method is
the value may not have been initialized.
pub fn set_loaded(&self, _loaded: bool)[src]
loaded flag of the cell. This method is a no-op when using the
unchecked implementation. It may be used when a value is inserted manually,
for example by assigning to the dereferenced pointer.
Load the contained value.
Store a new value in the cell.
impl<T> !RefUnwindSafe for MaybeCopy<T>
impl<T> UnwindSafe for MaybeCopy<T> where
type Error = Infallible
The type returned in the event of a conversion error.