pub struct MutHandle<'a, T: ?Sized> {
ptr: NonNull<T>,
_lt: PhantomData<&'a mut T>,
}Fields§
§ptr: NonNull<T>§_lt: PhantomData<&'a mut T>Implementations§
Trait Implementations§
Source§impl<'a, 'b, T> BorrowPlace<&'b mut T> for MutHandle<'a, T>where
'a: 'b,
impl<'a, 'b, T> BorrowPlace<&'b mut T> for MutHandle<'a, T>where
'a: 'b,
Source§const ACCESS: AccessKind = AccessKind::Exclusive
const ACCESS: AccessKind = AccessKind::Exclusive
The access permissions to the place required by
Self::borrow.Source§type Timing = Lifetime<'b>
type Timing = Lifetime<'b>
The timing of the access permissions of
Self::borrow.impl<T: ?Sized> Copy for MutHandle<'_, T>
Source§impl<'a, ProxyTiming, P> DerefPlace<ProxyTiming, Instant> for MutHandle<'a, P>
impl<'a, ProxyTiming, P> DerefPlace<ProxyTiming, Instant> for MutHandle<'a, P>
Source§const POINTEE_ACCESS: AccessKind = P::ACCESS
const POINTEE_ACCESS: AccessKind = P::ACCESS
The access permissions to the contents of the place handled by
Self
required by Self::deref_place.Source§const POINTER_ACCESS: AccessKind = AccessKind::Shared
const POINTER_ACCESS: AccessKind = AccessKind::Shared
The access permissions to the place handled by
Self required by
Self::deref_place.Source§const SAFE: bool = true
const SAFE: bool = true
Whether
Self::deref_place is safe when Self::POINTEE_ACCESS and
Self::POINTER_ACCESS are honored for PointeeTiming and
PointerTiming respectively. Read moreunsafe fn deref_place( self, ) -> <Self::Target as CreateHandle<ProxyTiming>>::Handle
Source§impl<'a, T: ?Sized> PlaceHandle for MutHandle<'a, T>
impl<'a, T: ?Sized> PlaceHandle for MutHandle<'a, T>
Source§impl<T> ReadPlace for MutHandle<'_, T>
impl<T> ReadPlace for MutHandle<'_, T>
Source§const ACCESS: AccessKind = AccessKind::Exclusive
const ACCESS: AccessKind = AccessKind::Exclusive
The access permissions to the place required by
Self::read_place.Source§unsafe fn read_place(self) -> Self::Target
unsafe fn read_place(self) -> Self::Target
Read from the place. Read more
Source§impl<T> WritePlace for MutHandle<'_, T>
impl<T> WritePlace for MutHandle<'_, T>
Source§const ACCESS: AccessKind = AccessKind::Exclusive
const ACCESS: AccessKind = AccessKind::Exclusive
The access permissions to the place required by
Self::write_place.Source§unsafe fn write_place(self, value: Self::Target)
unsafe fn write_place(self, value: Self::Target)
Write to the place. Read more
Auto Trait Implementations§
impl<'a, T> !Send for MutHandle<'a, T>
impl<'a, T> !Sync for MutHandle<'a, T>
impl<'a, T> !UnwindSafe for MutHandle<'a, T>
impl<'a, T> Freeze for MutHandle<'a, T>where
T: ?Sized,
impl<'a, T> RefUnwindSafe for MutHandle<'a, T>where
T: RefUnwindSafe + ?Sized,
impl<'a, T> Unpin for MutHandle<'a, T>where
T: ?Sized,
impl<'a, T> UnsafeUnpin for MutHandle<'a, T>where
T: ?Sized,
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