pub struct MutHandle<'a, T> {
pub value: &'a UnsafeCell<MaybeUninit<T>>,
/* private fields */
}
Expand description
Provides a mut-handle on the optional.
Fields§
§value: &'a UnsafeCell<MaybeUninit<T>>
Provides direct access to the cell holding the data of the optional.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for MutHandle<'a, T>
impl<'a, T> !RefUnwindSafe for MutHandle<'a, T>
impl<'a, T> !Send for MutHandle<'a, T>
impl<'a, T> !Sync for MutHandle<'a, T>
impl<'a, T> Unpin for MutHandle<'a, T>
impl<'a, T> !UnwindSafe for MutHandle<'a, T>
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