Trait ptr_meta::NonNullExt [−][src]
pub trait NonNullExt<T: Pointee + ?Sized> { type Raw; fn from_raw_parts(raw: Self::Raw, meta: <T as Pointee>::Metadata) -> Self; fn to_raw_parts(self) -> (Self::Raw, <T as Pointee>::Metadata); }
Expand description
Extension methods for NonNull
.
Associated Types
Required methods
fn from_raw_parts(raw: Self::Raw, meta: <T as Pointee>::Metadata) -> Self
[src]
Expand description
Creates a new non-null pointer from its raw parts.
fn to_raw_parts(self) -> (Self::Raw, <T as Pointee>::Metadata)
[src]
Expand description
Converts a non-null pointer to its raw parts.
Implementations on Foreign Types
impl<T: Pointee + ?Sized> NonNullExt<T> for NonNull<T>
[src]
impl<T: Pointee + ?Sized> NonNullExt<T> for NonNull<T>
[src]