Trait ptr_meta::PtrExt[][src]

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

type Raw[src]

Expand description

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

Required methods

fn to_raw_parts(self) -> (Self::Raw, <T as Pointee>::Metadata)[src]

Expand description

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

impl<T: Pointee + ?Sized> PtrExt<T> for *const T[src]

type Raw = *const ()

fn to_raw_parts(self) -> (Self::Raw, <T as Pointee>::Metadata)[src]

impl<T: Pointee + ?Sized> PtrExt<T> for *mut T[src]

type Raw = *mut ()

fn to_raw_parts(self) -> (Self::Raw, <T as Pointee>::Metadata)[src]

Implementors