pub trait PtrExt<T: Pointee + ?Sized> {
type Raw;
// Required method
fn to_raw_parts(self) -> (Self::Raw, <T as Pointee>::Metadata);
}
Expand description
Extension methods for pointers.
Required Associated Types§
Required Methods§
sourcefn to_raw_parts(self) -> (Self::Raw, <T as Pointee>::Metadata)
fn to_raw_parts(self) -> (Self::Raw, <T as Pointee>::Metadata)
Decompose a (possibly wide) pointer into its address and metadata components.
The pointer can be later reconstructed with from_raw_parts
.