-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-boxArea: Our favorite opsem complicationArea: Our favorite opsem complicationC-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCF-const_trait_impl`#![feature(const_trait_impl)]``#![feature(const_trait_impl)]`T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Description
Feature gate: #![feature(const_box)]
This is a tracking issue for implementing const Box<T, A>
methods.
Public API
impl<T, A: Allocator> Box<T, A> {
pub const unsafe fn from_raw_in(raw: *mut T, alloc: A) -> Self;
pub const fn allocator(b: &Self) -> &A;
pub const fn into_pin(boxed: Self) -> Pin<Self>
where
A: 'static;
}
Steps / History
- Implementation: Constify
Box<T, A>
methods #91884 - Final comment period (FCP)
- Stabilization PR
Unresolved Questions
- None
andir, piegamesde and ju1iusShadowJonathan, marziply, cassaundra and joseluis
Metadata
Metadata
Assignees
Labels
A-boxArea: Our favorite opsem complicationArea: Our favorite opsem complicationC-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCF-const_trait_impl`#![feature(const_trait_impl)]``#![feature(const_trait_impl)]`T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.