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

The type’s raw pointer (*const () or *mut ()).

Required methods

Decompose a (possibly wide) pointer into its address and metadata components.

The pointer can be later reconstructed with from_raw_parts.

Implementations on Foreign Types

Implementors