Equivalent to an
UnsafeCell<MaybeUninit<T>>, this cell may hold uninitialized data.
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.
Drop the contained value in place.
Load the contained value.
Store a new value in the cell.
impl<T> !RefUnwindSafe for Maybe<T>
impl<T> UnwindSafe for Maybe<T> where
type Error = Infallible
The type returned in the event of a conversion error.