Open
Description
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<T> {
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
andfrom_mut
constructors tocore::ptr::NonNull
. #130822 - Final comment period (FCP)
- Stabilization PR: Stabilize
#![feature(non_null_from_ref)]
#140511
Unresolved Questions
- None yet.
Metadata
Metadata
Assignees
Labels
Category: An issue tracking the progress of sth. like the implementation of an RFCRelevant to the library API team, which will review and decide on the PR/issue.This issue / PR is in PFCP or FCP with a disposition to merge it.The final comment period is finished for this PR / Issue.Announce this issue on triage meeting