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

The type’s raw pointer (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