#[repr(C)]
union PtrRepr<T: ?Sized> {
const_ptr: *const T,
mut_ptr: *mut T,
components: PtrComponents<T>,
}
🔬This is a nightly-only experimental API. (
ptr_metadata
#81513)Fields§
§const_ptr: *const T
🔬This is a nightly-only experimental API. (
§ptr_metadata
#81513)mut_ptr: *mut T
🔬This is a nightly-only experimental API. (
§ptr_metadata
#81513)components: PtrComponents<T>
🔬This is a nightly-only experimental API. (
ptr_metadata
#81513)Auto Trait Implementations§
impl<T: ?Sized> Freeze for PtrRepr<T>where <T as Pointee>::Metadata: Freeze,
impl<T: ?Sized> RefUnwindSafe for PtrRepr<T>where T: RefUnwindSafe, <T as Pointee>::Metadata: RefUnwindSafe,
impl<T> !Send for PtrRepr<T>
impl<T> !Sync for PtrRepr<T>
impl<T: ?Sized> Unpin for PtrRepr<T>
impl<T: ?Sized> UnwindSafe for PtrRepr<T>where T: RefUnwindSafe, <T as Pointee>::Metadata: UnwindSafe,
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