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