#[repr(transparent)]pub struct Mut<'a, T>where
T: ?Sized,{
pub ptr: NonNull<T>,
lifetime: PhantomData<&'a mut T>,
}
Fields§
§ptr: NonNull<T>
§lifetime: PhantomData<&'a mut T>
Implementations§
Trait Implementations§
impl<'a, T> Copy for Mut<'a, T>where
T: ?Sized,
Auto Trait Implementations§
impl<'a, T> Freeze for Mut<'a, T>where
T: ?Sized,
impl<'a, T> RefUnwindSafe for Mut<'a, T>where
T: RefUnwindSafe + ?Sized,
impl<'a, T> !Send for Mut<'a, T>
impl<'a, T> !Sync for Mut<'a, T>
impl<'a, T> Unpin for Mut<'a, T>where
T: ?Sized,
impl<'a, T> !UnwindSafe for Mut<'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