Struct core::ptr::metadata::PtrComponents
source · #[repr(C)]struct PtrComponents<T: ?Sized> {
data_address: *const (),
metadata: <T as Pointee>::Metadata,
}
🔬This is a nightly-only experimental API. (
ptr_metadata
#81513)Fields§
§data_address: *const ()
🔬This is a nightly-only experimental API. (
§ptr_metadata
#81513)metadata: <T as Pointee>::Metadata
🔬This is a nightly-only experimental API. (
ptr_metadata
#81513)Trait Implementations§
source§impl<T: ?Sized> Clone for PtrComponents<T>
impl<T: ?Sized> Clone for PtrComponents<T>
impl<T: ?Sized> Copy for PtrComponents<T>
Auto Trait Implementations§
impl<T: ?Sized> Freeze for PtrComponents<T>where <T as Pointee>::Metadata: Freeze,
impl<T: ?Sized> RefUnwindSafe for PtrComponents<T>where <T as Pointee>::Metadata: RefUnwindSafe,
impl<T> !Send for PtrComponents<T>
impl<T> !Sync for PtrComponents<T>
impl<T: ?Sized> Unpin for PtrComponents<T>
impl<T: ?Sized> UnwindSafe for PtrComponents<T>where <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