Closed
Description
opened on Dec 4, 2021
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.
Activity