Skip to content

Tracking Issue for const RangeBounds and const RangeX::contains #108082

Open
@onestacked

Description

@onestacked

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

Unresolved Questions

  • None yet.

Footnotes

  1. https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html

Metadata

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)]`S-tracking-blockedStatus: 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.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions