1use std::ptr::NonNull; 2 3pub(crate) trait Ptr { 4 type NonNull; 5} 6 7impl<T> Ptr for *mut T { 8 type NonNull = NonNull<T>; 9}