For questions like these it's often insightful to look at the implementation itself:
Other than the rustc_nonnull_optimization_guaranteed and rustc_layout_scalar_valid_range_start annotations, there isn't much to NonNull that you couldn't write yourself. 90% of that file is just documentation and // SAFETY: comments.