pub struct ManuallyStaticRefMut<T> { /* private fields */ }
Expand description
A mutable reference to the value held by ManuallyStatic<T>
.
In debug builds, it will panic if dereferenced after the
original ManuallyStatic
has been dropped.
Trait Implementations§
Source§impl<T> Deref for ManuallyStaticRefMut<T>
impl<T> Deref for ManuallyStaticRefMut<T>
Auto Trait Implementations§
impl<T> Freeze for ManuallyStaticRefMut<T>
impl<T> RefUnwindSafe for ManuallyStaticRefMut<T>where
T: RefUnwindSafe,
impl<T> !Send for ManuallyStaticRefMut<T>
impl<T> !Sync for ManuallyStaticRefMut<T>
impl<T> Unpin for ManuallyStaticRefMut<T>
impl<T> UnwindSafe for ManuallyStaticRefMut<T>where
T: RefUnwindSafe,
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