#[repr(transparent)]pub struct MutPtr<T>(pub *mut T);Expand description
A transparent wrapper around a mutable pointer that ensures safety checks on access
Tuple Fields§
§0: *mut TImplementations§
Trait Implementations§
impl<T: Copy> Copy for MutPtr<T>
Auto Trait Implementations§
impl<T> Freeze for MutPtr<T>
impl<T> RefUnwindSafe for MutPtr<T>where
T: RefUnwindSafe,
impl<T> !Send for MutPtr<T>
impl<T> !Sync for MutPtr<T>
impl<T> Unpin for MutPtr<T>
impl<T> UnsafeUnpin for MutPtr<T>
impl<T> UnwindSafe for MutPtr<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