pub struct BoxHandle<T: ?Sized> {
ptr: NonNull<T>,
_variance: PhantomCovariant<T>,
}Fields§
§ptr: NonNull<T>§_variance: PhantomCovariant<T>Trait Implementations§
Source§impl<'a, T: ?Sized> BorrowPlace<&'a mut T> for BoxHandle<T>
impl<'a, T: ?Sized> BorrowPlace<&'a mut T> for BoxHandle<T>
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<'a>
type Timing = Lifetime<'a>
The timing of the access permissions of
Self::borrow.impl<T> MovePlace for BoxHandle<T>
Source§impl<T: ?Sized> PlaceHandle for BoxHandle<T>
impl<T: ?Sized> PlaceHandle for BoxHandle<T>
Source§impl<T> ReadPlace for BoxHandle<T>
impl<T> ReadPlace for BoxHandle<T>
Source§const ACCESS: AccessKind = AccessKind::Shared
const ACCESS: AccessKind = AccessKind::Shared
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 BoxHandle<T>
impl<T> WritePlace for BoxHandle<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<T> !Send for BoxHandle<T>
impl<T> !Sync for BoxHandle<T>
impl<T> Freeze for BoxHandle<T>where
T: ?Sized,
impl<T> RefUnwindSafe for BoxHandle<T>where
T: RefUnwindSafe + ?Sized,
impl<T> Unpin for BoxHandle<T>where
T: ?Sized,
impl<T> UnsafeUnpin for BoxHandle<T>where
T: ?Sized,
impl<T> UnwindSafe for BoxHandle<T>where
T: RefUnwindSafe + ?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