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