pub struct MutHandle<'a, T: ?Sized> { /* private fields */ }🔬This is a nightly-only experimental API. (
field_projections #145383)Expand description
Handle referring to a place behind an exclusive reference.
Implementations§
Source§impl<'a, T: ?Sized> MutHandle<'a, T>
impl<'a, T: ?Sized> MutHandle<'a, T>
Sourcepub const fn as_ptr(&self) -> *const T
🔬This is a nightly-only experimental API. (field_projections #145383)
pub const fn as_ptr(&self) -> *const T
field_projections #145383)Obtains a const raw pointer to the place.
Sourcepub const fn as_mut_ptr(&self) -> *mut T
🔬This is a nightly-only experimental API. (field_projections #145383)
pub const fn as_mut_ptr(&self) -> *mut T
field_projections #145383)Obtains a mutable raw pointer to the place.
Trait Implementations§
impl<'a, T: ?Sized> Copy for MutHandle<'a, T>
Source§impl<'a, 'b, T: ?Sized> DerefPlace for MutHandle<'b, &'a mut T>
impl<'a, 'b, T: ?Sized> DerefPlace for MutHandle<'b, &'a mut T>
Source§type PointeeHandle = MutHandle<'a, T>
type PointeeHandle = MutHandle<'a, T>
🔬This is a nightly-only experimental API. (
field_projections #145383)Source§unsafe fn deref_place(self) -> Self::PointeeHandle
unsafe fn deref_place(self) -> Self::PointeeHandle
🔬This is a nightly-only experimental API. (
field_projections #145383)Source§impl<'a, 'b, T: ?Sized> DerefPlace for MutHandle<'b, &'a T>
impl<'a, 'b, T: ?Sized> DerefPlace for MutHandle<'b, &'a T>
Source§type PointeeHandle = RefHandle<'a, T>
type PointeeHandle = RefHandle<'a, T>
🔬This is a nightly-only experimental API. (
field_projections #145383)Source§unsafe fn deref_place(self) -> Self::PointeeHandle
unsafe fn deref_place(self) -> Self::PointeeHandle
🔬This is a nightly-only experimental API. (
field_projections #145383)Source§impl<'a, T: ?Sized> PlaceHandle for MutHandle<'a, T>
impl<'a, T: ?Sized> PlaceHandle for MutHandle<'a, T>
Source§impl<'a, S> ProjectPlace<S> for MutHandle<'a, S::Source>
impl<'a, S> ProjectPlace<S> for MutHandle<'a, S::Source>
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> Forget for MutHandle<'a, T>where
T: ?Sized,
impl<'a, T> Freeze for MutHandle<'a, T>
impl<'a, T> Move for MutHandle<'a, T>
impl<'a, T> RefUnwindSafe for MutHandle<'a, T>where
T: RefUnwindSafe + ?Sized,
impl<'a, T> Unpin for MutHandle<'a, T>
impl<'a, T> UnsafeUnpin for MutHandle<'a, 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