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.

Converts a non-null pointer to its raw parts.

Implementations on Foreign Types

Implementors