pub struct RefHandle<'a, T: ?Sized> {
ptr: NonNull<T>,
_lt: PhantomData<&'a mut T>,
}Fields§
§ptr: NonNull<T>§_lt: PhantomData<&'a mut T>Trait Implementations§
Source§impl<'a, 'b, T> BorrowPlace<&'b T> for RefHandle<'a, T>where
'a: 'b,
impl<'a, 'b, T> BorrowPlace<&'b T> for RefHandle<'a, T>where
'a: 'b,
Source§const ACCESS: AccessKind = AccessKind::Shared
const ACCESS: AccessKind = AccessKind::Shared
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.Source§impl<'a, ProxyTiming, P> DerefPlace<ProxyTiming, Instant> for RefHandle<'a, P>
impl<'a, ProxyTiming, P> DerefPlace<ProxyTiming, Instant> for RefHandle<'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 RefHandle<'a, T>
impl<'a, T: ?Sized> PlaceHandle for RefHandle<'a, T>
Auto Trait Implementations§
impl<'a, T> !Send for RefHandle<'a, T>
impl<'a, T> !Sync for RefHandle<'a, T>
impl<'a, T> !UnwindSafe for RefHandle<'a, T>
impl<'a, T> Freeze for RefHandle<'a, T>where
T: ?Sized,
impl<'a, T> RefUnwindSafe for RefHandle<'a, T>where
T: RefUnwindSafe + ?Sized,
impl<'a, T> Unpin for RefHandle<'a, T>where
T: ?Sized,
impl<'a, T> UnsafeUnpin for RefHandle<'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