Trait ptr_meta::NonNullExt
source · [−]pub trait NonNullExt<T: Pointee + ?Sized> {
fn from_raw_parts(raw: NonNull<()>, meta: <T as Pointee>::Metadata) -> Self;
fn to_raw_parts(self) -> (NonNull<()>, <T as Pointee>::Metadata);
}
Expand description
Extension methods for NonNull
.
Required Methods
Creates a new non-null pointer from its raw parts.