-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
C-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_borrow)]
This is a tracking issue for implementing const Borrow/BorrowMut
.
Public API
// core::borrow
impl<T: ?Sized> const Borrow<T> for T
impl<T: ?Sized> const BorrowMut<T> for T
impl<T: ?Sized> const Borrow<T> for &T
impl<T: ?Sized> const Borrow<T> for &mut T
impl<T: ?Sized> const BorrowMut<T> for &mut T
// core::array
impl<T, const N: usize> const Borrow<[T]> for [T; N]
impl<T, const N: usize> const BorrowMut<[T]> for [T; N]
Steps / History
- Implementation: Make
Borrow
andBorrowMut
implsconst
#90270 - Final comment period (FCP)
- Stabilization PR
Unresolved Questions
- None yet.
bhgomes and evanlinjin
Metadata
Metadata
Assignees
Labels
C-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.