-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Open
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)]`S-tracking-blockedStatus: This tracking issue is blocked on another tracking issueStatus: This tracking issue is blocked on another tracking issueT-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_range_bounds)]
This is a tracking issue for making RangeBounds
#[const_trait]
, implementing it for all Range types and allowing range.contains() and associated functions to be called form a const context.
Public API
// core::ops::RangeInclusive
impl<Idx> RangeInclusive<Idx> {
pub const fn into_inner(self) -> (Idx, Idx)
}
Steps / History
- Implementation: #...
- Wait for
#![feature(const_trait_impl)]
to become stable Tracking issue for closed RFC 2632,impl const Trait for Ty
and[const]
(conditionally const) syntax (const_trait_impl
) #67792 - Final comment period (FCP)1
- Stabilization PR
Unresolved Questions
- None yet.
Footnotes
K4rakara and skrobchik
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)]`S-tracking-blockedStatus: This tracking issue is blocked on another tracking issueStatus: This tracking issue is blocked on another tracking issueT-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.