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
- API change proposal (ACP): #448
- Implementation: Add from_ref and from_mut constructors to core::ptr::NonNull. #130822
- Final comment period (FCP)
- Stabilization PR
Unresolved Questions
- None yet.