Trait ptr_meta::NonNullExt
source · [−]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
fn from_raw_parts(raw: Self::Raw, meta: <T as Pointee>::Metadata) -> Self
Creates a new non-null pointer from its raw parts.