pub struct TypedPtrMut<'mem, T>(/* private fields */)
where
T: ?Sized;Expand description
A pointer to an uninitialized value with a lifetime.
Implementations§
Source§impl<'mem, T> TypedPtrMut<'mem, T>where
T: ?Sized,
impl<'mem, T> TypedPtrMut<'mem, T>where
T: ?Sized,
Sourcepub const fn new(ptr: &'mem mut T) -> TypedPtrMut<'mem, T>
pub const fn new(ptr: &'mem mut T) -> TypedPtrMut<'mem, T>
Creates a new typed pointer from a reference
Sourcepub const fn get_mut(self) -> &'mem mut T
pub const fn get_mut(self) -> &'mem mut T
Unwraps the typed pointer as a reference
Trait Implementations§
Source§impl<T> Debug for TypedPtrMut<'_, T>where
T: ?Sized,
impl<T> Debug for TypedPtrMut<'_, T>where
T: ?Sized,
Source§impl<'mem, T> From<&'mem mut T> for TypedPtrMut<'mem, T>where
T: ?Sized,
impl<'mem, T> From<&'mem mut T> for TypedPtrMut<'mem, T>where
T: ?Sized,
Source§fn from(value: &'mem mut T) -> TypedPtrMut<'mem, T>
fn from(value: &'mem mut T) -> TypedPtrMut<'mem, T>
Converts to this type from the input type.
Auto Trait Implementations§
impl<'mem, T> Freeze for TypedPtrMut<'mem, T>where
T: ?Sized,
impl<'mem, T> RefUnwindSafe for TypedPtrMut<'mem, T>where
T: RefUnwindSafe + ?Sized,
impl<'mem, T> !Send for TypedPtrMut<'mem, T>
impl<'mem, T> !Sync for TypedPtrMut<'mem, T>
impl<'mem, T> Unpin for TypedPtrMut<'mem, T>where
T: ?Sized,
impl<'mem, T> !UnwindSafe for TypedPtrMut<'mem, 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