Skip to content

Tracking Issue for const_borrow #91522

Closed
Closed
@lilasta

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

Unresolved Questions

  • None yet.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCF-const_trait_impl`#![feature(const_trait_impl)]`T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions