Feature gate: #![feature(box_as_non_null)]
This is a tracking issue for Box::as_non_null()
See also #130364, #157843, and #129090 for similar features.
Public API
impl<T: ?Sized, A: Allocator> Box<T, A> { pub fn as_non_null(b: &mut Self) -> NonNull<T>; }
Steps / History
(Remember to update the S-tracking-* label when checking boxes.)
- ACP: Add
Box::as_non_nulllibs-team#799 - Implementation: Implement
Box::as_non_null(). #157347 - Final comment period (FCP)1
- Stabilization PR
Unresolved Questions
- Should this be named
as_non_nulloras_nonnull? See also Partially stabilizebox_vec_non_null#157226 (comment) - Confirm whether we want a
&selfor&mut selfargument. See also Tracking Issue forVec::as_non_null()#157843.