Tracking Issue for non_null_from_ref · Issue #130823 · rust-lang/rust (original) (raw)

Feature gate: #![feature(non_null_from_ref)]

This is a tracking issue for adding the convenience constructors from_ref and from_mut to core::ptr::NonNull.

Public API

// core::ptr

impl<T: ?Sized> NonNull { pub const fn from_ref(r: &T) -> Self;

pub const fn from_mut(r: &mut T) -> Self;

}

Steps / History

Unresolved Questions